Type net:HttpRequest

Represents an HTTP request message
extends net:HttpMessage
Constructors:
net:HttpRequest(Node method, Node request-uri)
net:HttpRequest(Node request-uri)
net:HttpRequest()
Functions:
method(Node method)
set the request method
readPreamble(io:Stream stream)
writePreamble(io:Stream stream)
Functions inherited from net:HttpMessage:
version()
version(Node version)

Functions inherited from net:Message:
addHeader(Node name, Node value)
Add a header value by appending it to the existing value, or creating it if the header doesn't exist already
content(Node content)
Set the message content
content(String content)
Set the message content
content()
Get the message content
contentType()
Get the value of the Content-Type header
header(Node name, Node value)
Set the named header
header(Node name)
Get a message header
Returns: The value of the header as a String
headers()
Get a Map containing all headers
parse()
parse the XML body of this net:Message
Returns: the Message body as XML
read(String message)
Read a net:Message from a String.
Returns: This net:Message.
read(io:Stream stream)
Read a net:Message from a stream.
Returns: This net:Message.
string()
Get a String representation of this net:Message.
write(io:Stream stream)
Write this net:Message to a stream.
writeContent(io:Stream stream)