| 程序包 | 说明 |
|---|---|
| net.apexes.wsonrpc.server.support.http |
| 限定符和类型 | 方法和说明 |
|---|---|
static NanoHTTPD.Response |
NanoHTTPD.newChunkedResponse(NanoHTTPD.Response.IStatus status,
String mimeType,
InputStream data)
Create a response with unknown length (using HTTP 1.1 chunking).
|
static NanoHTTPD.Response |
NanoHTTPD.newFixedLengthResponse(NanoHTTPD.Response.IStatus status,
String mimeType,
InputStream data,
long totalBytes)
Create a response with known length.
|
static NanoHTTPD.Response |
NanoHTTPD.newFixedLengthResponse(NanoHTTPD.Response.IStatus status,
String mimeType,
String txt)
Create a text response with known length.
|
static NanoHTTPD.Response |
NanoHTTPD.newFixedLengthResponse(String msg)
Create a text response with known length.
|
NanoHTTPD.Response |
NanoHTTPD.serve(NanoHTTPD.IHTTPSession session)
Override this to customize the server.
|
NanoHTTPD.Response |
NanoHTTPD.serve(String uri,
NanoHTTPD.Method method,
Map<String,String> headers,
Map<String,String> parms,
Map<String,String> files)
已过时。
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
NanoHTTPD.CookieHandler.unloadQueue(NanoHTTPD.Response response)
Internally used by the webserver to add all queued cookies into the
Response's HTTP Headers.
|
protected boolean |
NanoHTTPD.useGzipWhenAccepted(NanoHTTPD.Response r) |
Copyright © 2019. All rights reserved.