类 Doge.Exchange
java.lang.Object
org.v2u.toy.Doge.Exchange
-
字段概要
字段修饰符和类型字段说明protected byte[]protected static final intfinal com.sun.net.httpserver.HttpExchangeprotected intprotected int -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明<T> T<T> Tbody()byte[]bytes()voidclose()contentType(String type) voidcom.sun.net.httpserver.Headersheaders()voidvoidmaxRequestBodySize(int size) method()params()path()voidvoidresult(byte[] responseBytes) voidresult(InputStream inputStream) voidvoidsse(java.util.function.Consumer<Doge.SseEmitter> handler) voidstaticFile(File root, String path) status(int code) static String
-
字段详细资料
-
inner
public final com.sun.net.httpserver.HttpExchange inner -
attributes
-
statusCode
protected int statusCode -
maxRequestBodySize
protected int maxRequestBodySize -
cachedBody
protected byte[] cachedBody -
cachedQueryParams
-
DEFAULT_BUFFER_SIZE
protected static final int DEFAULT_BUFFER_SIZE- 另请参阅:
-
-
构造器详细资料
-
Exchange
public Exchange(com.sun.net.httpserver.HttpExchange inner)
-
-
方法详细资料
-
path
-
method
-
headers
public com.sun.net.httpserver.Headers headers() -
json
-
status
-
contentType
-
download
-
redirect
-
attr
-
attr
-
attr
-
sse
-
close
public void close() -
urlDecode
-
params
-
body
-
bytes
public byte[] bytes() -
header
-
header
-
cookie
-
cookie
-
html
-
staticFile
-
result
-
result
public void result(byte[] responseBytes) -
result
-
maxRequestBodySize
-