public interface HttpRequest
| 限定符和类型 | 方法和说明 |
|---|---|
String |
charset()
获取编码格式
|
long |
contentLength()
获取Content-Length
|
String |
contentType()
获取Content-Type
|
List<HttpCookie> |
cookieList()
获取Cookie列表
|
byte[] |
getBodyAsBytes()
获取输入流字节数组
|
String |
getHeader(String name)
获取http头部
|
Map<String,List<String>> |
getHeaders()
获取http头部列表
|
InputStream |
getInputStream()
获取输入流
|
boolean |
hasHeader(String name)
http头部是否存在
|
String |
ip()
获取客户端ip
|
String |
method()
获取请求方法
|
String |
protocol()
协议版本
|
URI |
uri()
获取请求url
|
String ip()
URI uri()
String method()
String protocol()
String charset()
long contentLength()
String contentType()
boolean hasHeader(String name)
List<HttpCookie> cookieList()
byte[] getBodyAsBytes()
InputStream getInputStream()
Copyright © 2022. All rights reserved.