Interface Network
-
- All Implemented Interfaces:
public interface Network
The network stack used for all HTTP requests made by the player.
-
-
Method Summary
Modifier and Type Method Description abstract Unit
addHTTPInterceptor(HTTPInterceptor interceptor)
Adds an HTTPInterceptor to the network stack. abstract Unit
removeHTTPInterceptor(HTTPInterceptor interceptor)
Removes a previously added HTTPInterceptor from the network stack. -
-
Method Detail
-
addHTTPInterceptor
abstract Unit addHTTPInterceptor(HTTPInterceptor interceptor)
Adds an HTTPInterceptor to the network stack.
This interceptor will be called whenever the player makes a HTTP request or receives an HTTP response. The interceptor can inspect and/or modify the request or response before it is returned to the player.
-
removeHTTPInterceptor
abstract Unit removeHTTPInterceptor(HTTPInterceptor interceptor)
Removes a previously added HTTPInterceptor from the network stack.
-
-
-
-