Share:

PREVIOUS  |  NEXT

request


HTTP client and server communicate by sending text messages. The client sends a request message to the server and then the server returns a response message. An HTTP message consists of a message header and an optional message body, separated by a blank line.

The following table lists the available methods for the request object:

Return Type Method Explanation
Stringrequest.getBody()Returns the body of the HTTP request object
Stringrequest.getContentType()Returns the content type of the HTTP request object
Stringrequest.getHeader(String)Returns the header of the HTTP request object
Stringrequest.getMethod()Returns the method of the HTTP request object
Stringrequest.getParameter(String)Returns the parameter of the HTTP request object