HttpRequest Interface
Http request delivered to the HTTP server callback.
Methods
Code HttpConnectionInfo get connectionInfo() #
Get information about the client connection. Returns null
if the socket
isn't available.
HttpConnectionInfo get connectionInfo();
Code int get contentLength() #
Returns the content length of the request body. If the size of the request body is not known in advance this -1.
int get contentLength();
Code List<Cookie> get cookies() #
Returns the cookies in the request (from the Cookie header).
List<Cookie> get cookies();
Code HttpHeaders get headers() #
Returns the request headers.
HttpHeaders get headers();
Code InputStream get inputStream() #
Returns the input stream for the request. This is used to read the request data.
InputStream get inputStream();
Code bool get persistentConnection() #
Returns the persistent connection state signaled by the client.
bool get persistentConnection();
Code String get protocolVersion() #
Returns the HTTP protocol version used in the request. This will be "1.0" or "1.1".
String get protocolVersion();