Package com.robothy.netty.http
Class HttpRequest
java.lang.Object
com.robothy.netty.http.HttpRequest
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()io.netty.buffer.ByteBufgetBody()io.netty.handler.codec.http.HttpVersionio.netty.handler.codec.http.HttpMethodgetPath()getUri()header(CharSequence name) Get the header value by name.Get the first value by the parameter name.parameters(String name) Get the parameter values by name.
-
Method Details
-
header
Get the header value by name.- Parameters:
name- header name.- Returns:
- the header value.
-
parameter
Get the first value by the parameter name.- Parameters:
name- parameter name.- Returns:
- the first value of the parameter.
-
parameters
Get the parameter values by name. Include path parameters and query parameters.- Parameters:
name- parameter name.- Returns:
- the parameter values.
-
builder
-
getHeaders
-
getParams
-
getPath
-
getUri
-
getMethod
public io.netty.handler.codec.http.HttpMethod getMethod() -
getBody
public io.netty.buffer.ByteBuf getBody() -
getHttpVersion
public io.netty.handler.codec.http.HttpVersion getHttpVersion()
-