-
- All Implemented Interfaces:
public interface Request
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceRequest.EventEvents representing the state of the HTTP request/response.
-
Method Summary
Modifier and Type Method Description abstract BufferedSourcebody()Body data to send with request. abstract Responseexecute()Executes the request and returns a complete response. abstract Flow<Request.Event>start()Starts the HTTP request and returns a Flow of events. abstract MethodgetMethod()HTTP method for request. abstract URIgetUri()Target URL for request. abstract Iterable<Pair<String, String>>getHeaders()Headers to send with request. -
-
Method Detail
-
body
abstract BufferedSource body()
Body data to send with request.
-
start
abstract Flow<Request.Event> start()
Starts the HTTP request and returns a Flow of events.
-
getHeaders
abstract Iterable<Pair<String, String>> getHeaders()
Headers to send with request.
-
-
-
-