| Package | Description |
|---|---|
| de.tsl2.nano.h5 |
| Modifier and Type | Method and Description |
|---|---|
static NanoHTTPD.Response |
NanoH5.createResponse(NanoHTTPD.Response.Status status,
String type,
String msg) |
NanoHTTPD.Response |
NanoH5.createResponse(String msg) |
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 |
NanoH5.serve(String uri,
NanoHTTPD.Method m,
Map<String,String> header,
Map<String,String> parms,
Map<String,String> files)
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)
Deprecated.
|
NanoHTTPD.Response |
NanoHTTPD.serve(String uri,
String method,
Map<String,String> header,
Map<String,String> parms,
Map<String,String> files)
Override this to customize the server.
|
NanoHTTPD.Response |
NanoH5Session.serve(String uri,
String method,
Map<String,String> header,
Map<String,String> parms,
Map<String,String> files)
main session serve method. requests of type 'GET' and file-links are handled by the application class (NanoH5).
|
NanoHTTPD.Response |
NanoHTTPD.serveFile(String uri,
Map<String,String> header,
File homeDir,
boolean allowDirectoryListing)
Serves file from homeDir and its' subdirectories (only).
|
| Modifier and Type | Method and Description |
|---|---|
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 © 2012–2020. All rights reserved.