Package com.inrupt.client
Class Request
java.lang.Object
com.inrupt.client.Request
An HTTP Request.
This interface provides a generic API for building and interacting with HTTP requests.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
An API for serializing an HTTP Request.static final class
Built-inRequest.BodyPublisher
implementations.static final class
ARequest
builder. -
Method Summary
Modifier and TypeMethodDescriptionTheRequest.BodyPublisher
set on this request.headers()
The HTTP headers for this request.method()
The HTTP method.static Request.Builder
Creates aRequest
builder.static Request.Builder
newBuilder
(URI uri) Creates aRequest
builder with the given URI.timeout()
The timeout for this request.uri()
The HTTP URI.
-
Method Details
-
method
The HTTP method.- Returns:
- the HTTP method
-
uri
The HTTP URI.- Returns:
- the HTTP URI
-
bodyPublisher
TheRequest.BodyPublisher
set on this request.- Returns:
- the body publisher, if present
-
headers
The HTTP headers for this request.- Returns:
- the HTTP headers
-
timeout
The timeout for this request.- Returns:
- the timeout for this request, if present
-
newBuilder
Creates aRequest
builder.- Returns:
- the builder
-
newBuilder
Creates aRequest
builder with the given URI.- Parameters:
uri
- the request URI- Returns:
- the builder
-