A download request for use with the
ReadWeb module.
- Namespace
- Statiq
.Core - Base Types
-
- object
graph BT
Type-->Base0["object"]
Type["WebRequest"]
class Type type-node
Syntax
public class WebRequest
Constructors
| Name | Summary |
|---|---|
| WebRequest |
Creates a new download request. |
| WebRequest |
Creates a new download request. |
Properties
| Name | Property Type | Summary |
|---|---|---|
| Content | HttpContent |
The content of the request (has no effect for some methods like GET).
|
| Credentials | NetworkCredential |
The network credentials to use for the request.
|
| Headers | WebRequestHeaders |
Request headers.
|
| Method | HttpMethod |
The method to use.
|
| QueryString | IDictionary |
The query string parameters. These will be combined with any that already exist in
Uri.
|
| Uri | Uri |
The URI to download from.
|
Methods
| Name | Return Value | Summary |
|---|---|---|
| WithContent |
WebRequest |
Sets the content of the request (only applicable to some request methods).
|
| WithContent |
WebRequest |
Sets the string content of the request (only applicable to some request methods).
|
| WithCredentials |
WebRequest |
Sets the credentials to use for the request.
|
| WithCredentials |
WebRequest |
Sets the credentials to use for the request.
|
| WithHeaders |
WebRequest |
Sets the request headers.
|
| WithMethod |
WebRequest |
Sets the request method.
|
| WithQueryString |
WebRequest |
Sets a query string value.
|