-
- All Implemented Interfaces:
public interface HttpClientAn HTTP client performs HTTP requests.
You may provide a custom implementation, or use the DefaultHttpClient one which relies on native APIs.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classHttpClient.Companion
-
Method Summary
Modifier and Type Method Description abstract Try<HttpStreamResponse, HttpException>stream(HttpRequest request)Streams the resource from the given request. Try<HttpFetchResponse, HttpException>fetch(HttpRequest request)Fetches the resource from the given request. -
-
Method Detail
-
stream
abstract Try<HttpStreamResponse, HttpException> stream(HttpRequest request)
Streams the resource from the given request.
-
fetch
Try<HttpFetchResponse, HttpException> fetch(HttpRequest request)
Fetches the resource from the given request.
-
-
-
-