|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object fi.iki.elonen.nanohttpd.NanoHTTPD.Response
public class NanoHTTPD.Response
HTTP response. Return one of these from serve().
Field Summary | |
---|---|
java.io.InputStream |
data
Data of the response, may be null. |
java.util.Properties |
header
Headers for the HTTP response. |
java.lang.String |
mimeType
MIME type of content, e.g. |
java.lang.String |
status
HTTP status code after processing, e.g. |
Constructor Summary | |
---|---|
NanoHTTPD.Response()
Default constructor: response = HTTP_OK, data = mime = 'null' |
|
NanoHTTPD.Response(java.lang.String status,
java.lang.String mimeType,
java.io.InputStream data)
Basic constructor. |
|
NanoHTTPD.Response(java.lang.String status,
java.lang.String mimeType,
java.lang.String txt)
Convenience method that makes an InputStream out of given text. |
Method Summary | |
---|---|
void |
addHeader(java.lang.String name,
java.lang.String value)
Adds given line to the header. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.lang.String status
public java.lang.String mimeType
public java.io.InputStream data
public java.util.Properties header
Constructor Detail |
---|
public NanoHTTPD.Response()
public NanoHTTPD.Response(java.lang.String status, java.lang.String mimeType, java.io.InputStream data)
public NanoHTTPD.Response(java.lang.String status, java.lang.String mimeType, java.lang.String txt)
Method Detail |
---|
public void addHeader(java.lang.String name, java.lang.String value)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |