Summary
A download request for use with the
Wyam.Core.Modules.IO.Download
module.
- Assembly
- Wyam
.Core .dll - Namespace
- Wyam
.Core .Modules .IO - Base Types
-
- Object
graph BT
Type-->Base0["Object"]
Type["DownloadRequest"]
class Type type-node
Syntax
public class DownloadRequest
Constructors
Name | Summary |
---|---|
DownloadRequest |
Creates a new download request. |
DownloadRequest |
Creates a new download request. |
Properties
Name | Value | 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 | RequestHeaders |
Request headers.
|
Method | HttpMethod |
The method to use.
|
QueryString | IDictionary |
The query string parameters. These will be combined with any that already exist in
Wyam.Core.Modules.IO.DownloadRequest.Uri .
|
Uri | Uri |
The URI to download from.
|
Methods
Name | Value | Summary |
---|---|---|
WithContent |
DownloadRequest |
Sets the content of the request (only applicable to some request methods).
|
WithContent |
DownloadRequest |
Sets the string content of the request (only applicable to some request methods).
|
WithCredentials |
DownloadRequest |
Sets the credentials to use for the request.
|
WithCredentials |
DownloadRequest |
Sets the credentials to use for the request.
|
WithHeaders |
DownloadRequest |
Sets the request headers.
|
WithMethod |
DownloadRequest |
Sets the request method.
|
WithQueryString |
DownloadRequest |
Sets a query string value.
|