DocumentRequest
Represents the arguments to load a document.
Gets or sets the stream of the request's body.
Gets a list of headers (key-values) that should be used.
Gets or sets the method to use.
Gets or sets the mime-type to use, if any.
Gets or sets the referrer of the request, if any. The name is
intentionally spelled wrong, to emphasize the relationship with the
HTTP header.
Gets or sets the source of the request, if any.
Gets the target of the request.
Creates a new document request for the given url.
Creates a GET request for the given target from the optional source
node and optional referer string.
public static DocumentRequest Post(Url target, Stream body, string type, INode source = null, string referer = null)
Creates a POST request for the given target with the provided body
and encoding type from the optional source node and optional
referer string.
Creates a POST request for the given target with the fields being
used to generate the body and encoding type url encoded.
Creates a POST request for the given target with the fields being
used to generate the body and encoding type url encoded.
Creates a POST request for the given target with the fields being
used to generate the body and encoding type plaintext.
Creates a POST request for the given target with the fields being
used to generate the body and encoding type url encoded.