| 程序包 | 说明 |
|---|---|
| org.nanohttpd.protocols.http | |
| org.nanohttpd.protocols.http.content | |
| org.nanohttpd.protocols.http.response |
| 限定符和类型 | 字段和说明 |
|---|---|
protected List<IHandler<IHTTPSession,Response>> |
NanoHTTPD.interceptors |
| 限定符和类型 | 方法和说明 |
|---|---|
Response |
NanoHTTPD.handle(IHTTPSession session)
This is the "master" method that delegates requests to handlers and makes
sure there is a response to every request.
|
protected Response |
NanoHTTPD.serve(IHTTPSession session)
已过时。
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
NanoHTTPD.addHTTPInterceptor(IHandler<IHTTPSession,Response> interceptor) |
void |
NanoHTTPD.setHTTPHandler(IHandler<IHTTPSession,Response> handler) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
CookieHandler.unloadQueue(Response response)
Internally used by the webserver to add all queued cookies into the
Response's HTTP Headers.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static Response |
Response.newChunkedResponse(IStatus status,
String mimeType,
InputStream data)
Create a response with unknown length (using HTTP 1.1 chunking).
|
static Response |
Response.newFixedLengthResponse(IStatus status,
String mimeType,
byte[] data) |
static Response |
Response.newFixedLengthResponse(IStatus status,
String mimeType,
InputStream data,
long totalBytes)
Create a response with known length.
|
static Response |
Response.newFixedLengthResponse(IStatus status,
String mimeType,
String txt)
Create a text response with known length.
|
static Response |
Response.newFixedLengthResponse(String msg)
Create a text response with known length.
|
Response |
Response.setUseGzip(boolean useGzip) |
Copyright © 2012–2020 nanohttpd. All rights reserved.