- All Superinterfaces:
HttpPreRequest
A basic http request abstraction. Http modules needs to implement this interface to integrate with the
server package's rest handling. This interface exposes the request's content as well as methods to be used
to generate a response.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbody()
createResponse
(RestStatus status, BytesReference content) Create an http response from this request and the supplied status and content.createResponse
(RestStatus status, ChunkedRestResponseBodyPart firstBodyPart) boolean
void
release()
Release any resources associated with this request.removeHeader
(String header) void
Methods inherited from interface org.elasticsearch.http.HttpPreRequest
getHeaders, header, method, rawPath, uri
-
Method Details
-
body
HttpBody body() -
setBody
-
strictCookies
-
protocolVersion
HttpRequest.HttpVersion protocolVersion() -
removeHeader
-
hasContent
boolean hasContent() -
createResponse
Create an http response from this request and the supplied status and content. -
createResponse
-
getInboundException
-
release
void release()Release any resources associated with this request. Implementations should be idempotent. The behavior ofbody()
after this method has been invoked is undefined and implementation specific.
-