Provides a [[Java.IO.ServletInputStream]] to the callback functionto read the requests content. This method will close the stream.
Function that uses input
B.net.request.binaryStream(in => {
let line = in.readLine();
});
The name of the character encoding used in the body of this request. This property returns an empty string if the request does not specify a character encoding.
const encoding = B.net.request.characterEncoding();
const B.net.request.setCharacterEncoding('UTF-8');
This will iterate over all parts of the multipart request, and give you the name and inputstream via callback function.
A function to handle each part.
Returns all the values of the specified request header as an list of strings. Some headers, such as Accept-Language can be sent by clients as several headers each with a different value rather than sending the header as a comma separated list.
If the request did not include any headers of the specified name, this method returns an empty list. The header name is case insensitive. You can use this method with any request header.
Provides a stream to read the requests content.
Returns the optional string of the specified request header. If the request did not include a header of the specified name, this method returns an empty string. If there are multiple headers with the same name, this method returns the first head in the request. The header name is case insensitive. You can use this method with any request header.
Provides a reader to read the requests content.
Returns the fully qualified name of the client or the last proxy that sent the request. If the engine cannot or chooses not to resolve the hostname (to improve performance), this method returns the dotted-string form of the IP address. For HTTP servlets, same as the value of the CGI variable REMOTE_HOST
Returns the login of the user making this request, if the user has been authenticated, or null if the user has not been authenticated. Whether the user name is sent with each subsequent request depends on the browser and type of authentication. Same as the value of the CGI variable REMOTE_USER.
Provides a [[Java.IO.BufferedReader]] to the callback function to read the requests content. This method will close the stream.
Function that uses input
B.net.request.stream(in => {
});
Generated using TypeDoc
Object used to help with the request data.