public class HttpServerRequestImpl extends Object implements HttpServerRequest
| Constructor and Description |
|---|
HttpServerRequestImpl(io.netty.handler.codec.http.HttpRequest headers) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAccept()
The Accept header sended by the client.
|
String |
getAcceptLanguage()
The AcceptLanguaje header sended by the client.
|
io.netty.buffer.ByteBuf |
getBuffer() |
String |
getHeader(String header)
Gets the value of the especified header.
|
String[] |
getHeaders()
All the headers names in this request.
|
String |
getHost()
The host of the server the client made the HTTP request to
|
InputStream |
getInputStream()
An InputStream witch allows to read the request body for this request.
|
String |
getMethod()
The HTTP method used to made the request.
|
String |
getPath()
The requested path asked by the client.
|
String |
getProtocol()
The protocol used to made the request
|
String |
getUserAgent()
The UserAgent heather from the http request if any.
|
public HttpServerRequestImpl(io.netty.handler.codec.http.HttpRequest headers)
public InputStream getInputStream()
HttpServerRequestgetInputStream in interface HttpServerRequestpublic io.netty.buffer.ByteBuf getBuffer()
public String getMethod()
HttpServerRequestgetMethod in interface HttpServerRequestpublic String getProtocol()
HttpServerRequestgetProtocol in interface HttpServerRequestpublic String getHost()
HttpServerRequestgetHost in interface HttpServerRequestpublic String getUserAgent()
HttpServerRequestgetUserAgent in interface HttpServerRequestpublic String getAccept()
HttpServerRequestgetAccept in interface HttpServerRequestpublic String getAcceptLanguage()
HttpServerRequestgetAcceptLanguage in interface HttpServerRequestpublic String getPath()
HttpServerRequestgetPath in interface HttpServerRequestpublic String getHeader(String header)
HttpServerRequestgetHeader in interface HttpServerRequestheader - The header namepublic String[] getHeaders()
HttpServerRequestgetHeaders in interface HttpServerRequestCopyright © 2015–2016 Bridje Framework. All rights reserved.