| 构造器和说明 |
|---|
HttpRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
Map<String,Object> |
attributes() |
io.netty.buffer.ByteBuf |
body() |
String |
bodyToString() |
static HttpRequest |
build(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.FullHttpRequest fullHttpRequest,
SessionHandler sessionHandler) |
Request |
cookie(Cookie cookie)
Add a cookie to the request
|
Optional<Cookie> |
cookieRaw(String name) |
Map<String,String> |
cookies() |
Map<String,FileItem> |
fileItems() |
Map<String,String> |
headers() |
String |
host() |
HttpMethod |
httpMethod() |
Request |
initPathParams(Route route)
init request path parameters
|
boolean |
isIE() |
boolean |
isSecure() |
boolean |
keepAlive() |
String |
method() |
Map<String,List<String>> |
parameters() |
Map<String,String> |
pathParams() |
String |
protocol() |
String |
queryString() |
Route |
route() |
Session |
session() |
String |
uri() |
String |
url() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddress, attribute, attribute, contentType, contextPath, cookie, cookie, fileItem, header, header, isAjax, pathInt, pathLong, pathString, query, query, queryDouble, queryDouble, queryInt, queryInt, queryLong, queryLong, userAgentpublic Request initPathParams(@NonNull Route route)
RequestinitPathParams 在接口中 Requestpublic Map<String,String> pathParams()
pathParams 在接口中 Requestpublic String queryString()
queryString 在接口中 Requestpublic Map<String,List<String>> parameters()
parameters 在接口中 Requestpublic HttpMethod httpMethod()
httpMethod 在接口中 Requestpublic boolean isSecure()
public boolean keepAlive()
public Map<String,Object> attributes()
attributes 在接口中 Requestpublic String bodyToString()
bodyToString 在接口中 Requestpublic static HttpRequest build(io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.codec.http.FullHttpRequest fullHttpRequest, SessionHandler sessionHandler)
Copyright © 2017. All rights reserved.