DownloadRequest Class

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(string) Creates a new download request.
DownloadRequest(Uri) 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<string, string>
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(HttpContent) DownloadRequest
Sets the content of the request (only applicable to some request methods).
WithContent(string) DownloadRequest
Sets the string content of the request (only applicable to some request methods).
WithCredentials(NetworkCredential) DownloadRequest
Sets the credentials to use for the request.
WithCredentials(string, string) DownloadRequest
Sets the credentials to use for the request.
WithHeaders(RequestHeaders) DownloadRequest
Sets the request headers.
WithMethod(HttpMethod) DownloadRequest
Sets the request method.
WithQueryString(string, string) DownloadRequest
Sets a query string value.
GitHub