Package io.vertx.mutiny.core.http
Class HttpRequestHead
java.lang.Object
io.vertx.mutiny.core.http.HttpRequestHead
- All Implemented Interfaces:
MutinyDelegate
- Direct Known Subclasses:
HttpServerRequest
The state of the HTTP request head:
- Method / URI
- Headers
NOTE: This class has been automatically generated from the original non Mutiny-ified interface.
- See Also:
-
HttpRequestHead
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionHttpRequestHead(io.vertx.core.http.HttpRequestHead delegate) Create a new instance ofHttpRequestHeaddelegating to the given (non-null) instance ofHttpRequestHead.HttpRequestHead(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionbooleanio.vertx.core.http.HttpRequestHeadGet the delegate instance.getHeader(CharSequence headerName) Return the first header value with the specified nameReturn the first header value with the specified nameinthashCode()io.vertx.core.MultiMapheaders()io.vertx.core.http.HttpMethodmethod()static HttpRequestHeadnewInstance(io.vertx.core.http.HttpRequestHead delegate) Creates a new instance of theHttpRequestHead.path()Returns the path component of the HTTP request URI.query()toString()uri()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
HttpRequestHead
public HttpRequestHead(io.vertx.core.http.HttpRequestHead delegate) Create a new instance ofHttpRequestHeaddelegating to the given (non-null) instance ofHttpRequestHead. -
HttpRequestHead
-
-
Method Details
-
getDelegate
public io.vertx.core.http.HttpRequestHead getDelegate()Get the delegate instance.This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.
- Specified by:
getDelegatein interfaceMutinyDelegate- Returns:
- the delegate instance
-
method
public io.vertx.core.http.HttpMethod method()- Returns:
- the HTTP method for the request.
-
uri
- Returns:
- the URI of the request. This is usually a relative URI
-
path
Returns the path component of the HTTP request URI.This is the raw, non-normalized path as received from the client. It may contain duplicated separators or traversal segments such as
"..".For security-sensitive logic (for example access control, routing or filesystem checks), applications should prefer using a normalized path provided by the framework instead of relying on this raw value.
- Returns:
- the raw path component of the request URI. Can be
null.
-
query
- Returns:
- the query part of the uri. For example
someparam=32&someotherparam=x. Can benull.
-
headers
public io.vertx.core.MultiMap headers()- Returns:
- the headers
-
getHeader
Return the first header value with the specified name- Parameters:
headerName- the header name- Returns:
- the header value. Can be
null.
-
getHeader
Return the first header value with the specified name- Parameters:
headerName- the header name- Returns:
- the header value
-
newInstance
Creates a new instance of theHttpRequestHead. -
hashCode
public int hashCode() -
equals
-
toString
-