Package fi.iki.elonen
Interface NanoHTTPD.IHTTPSession
- All Known Implementing Classes:
NanoHTTPD.HTTPSession
- Enclosing class:
NanoHTTPD
public static interface NanoHTTPD.IHTTPSession
Handles one session, i.e. parses the HTTP request and returns the
response.
-
Method Details
-
execute
- Throws:
IOException
-
getCookies
NanoHTTPD.CookieHandler getCookies() -
getHeaders
-
getInputStream
InputStream getInputStream() -
getMethod
NanoHTTPD.Method getMethod() -
getParms
Deprecated.usegetParameters()
instead.This method will only return the first value for a given parameter. You will want to use getParameters if you expect multiple values for a given key. -
getParameters
-
getQueryParameterString
String getQueryParameterString() -
getUri
String getUri()- Returns:
- the path part of the URL.
-
parseBody
Adds the files in the request body to the files map.- Parameters:
files
- map to modify- Throws:
IOException
NanoHTTPD.ResponseException
-
getRemoteIpAddress
String getRemoteIpAddress()Get the remote ip address of the requester.- Returns:
- the IP address.
-
getRemoteHostName
String getRemoteHostName()Get the remote hostname of the requester.- Returns:
- the hostname.
-
getParameters()
instead.