Package org.elasticsearch.http
Interface HttpPreRequest
- All Known Subinterfaces:
HttpRequest
- All Known Implementing Classes:
HttpPipelinedRequest
public interface HttpPreRequest
A slim interface for precursors to HTTP requests, which doesn't expose access to the request's body,
because it's not available yet.
-
Method Summary
-
Method Details
-
method
RestRequest.Method method()Returns the HTTP method used in the HTTP request.- Returns:
- the
RestRequest.Method
used in the request - Throws:
IllegalArgumentException
- if the HTTP method is invalid
-
uri
String uri()The uri with the query string. -
getHeaders
Get all of the headers and values associated with the HTTP headers. Modifications of this map are not supported. -
header
-