| 程序包 | 说明 |
|---|---|
| org.nanohttpd.protocols.http.response |
| 限定符和类型 | 类和说明 |
|---|---|
class |
Status
Some HTTP response status codes
|
| 限定符和类型 | 方法和说明 |
|---|---|
IStatus |
Response.getStatus() |
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
void |
Response.setStatus(IStatus status) |
| 构造器和说明 |
|---|
Response(IStatus status,
String mimeType,
InputStream data,
long totalBytes)
Creates a fixed length response if totalBytes>=0, otherwise chunked.
|
Copyright © 2012–2020 nanohttpd. All rights reserved.