RequestHeaders Class

Summary

The request headers to 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["RequestHeaders"] class Type type-node

Syntax

public class RequestHeaders

Constructors

Name Summary
RequestHeaders() Creates a new empty set of request headers.
RequestHeaders(IEnumerable<KeyValuePair<string, string>>) Creates the specified request headers.

Properties

Name Value Summary
Accept List<string>
AcceptCharset List<string>
AcceptEncoding List<string>
AcceptLanguage List<string>
BasicAuthorization Tuple<string, string>
Connection List<string>
Date Nullable<DateTimeOffset>
Expect List<string>
ExpectContinue Nullable<bool>
From string
Host string
IfMatch List<string>
IfModifiedSince Nullable<DateTimeOffset>
IfNoneMatch List<string>
IfUnmodifiedSince Nullable<DateTimeOffset>
MaxForwards Nullable<int>
Referrer Uri
TransferEncoding List<string>
TransferEncodingChunked Nullable<bool>

Methods

Name Value Summary
Add(string, IEnumerable<string>) RequestHeaders
Adds a new request header with multiple values.
Add(string, string) RequestHeaders
Adds a new request header.
Remove(string) RequestHeaders
Removes a request header.
SetBasicAuthorization(string, string) void
GitHub