Skip to main content

HttpRequestConfig

Assembly: ServiceStack.Text.dll
View Source
Declaration
public class HttpRequestConfig

Properties

Accept

View Source
Declaration
public string Accept { get; set; }

UserAgent

View Source
Declaration
public string UserAgent { get; set; }

ContentType

View Source
Declaration
public string ContentType { get; set; }

Referer

View Source
Declaration
public string Referer { get; set; }

Expect

View Source
Declaration
public string Expect { get; set; }

TransferEncoding

View Source
Declaration
public string[] TransferEncoding { get; set; }

TransferEncodingChunked

View Source
Declaration
public bool? TransferEncodingChunked { get; set; }

Authorization

View Source
Declaration
public NameValue Authorization { get; set; }

Range

View Source
Declaration
public LongRange Range { get; set; }

Headers

View Source
Declaration
public List<NameValue> Headers { get; set; }

Methods

SetAuthBearer(String)

View Source
Declaration
public void SetAuthBearer(string value)
Parameters
TypeName
System.Stringvalue

SetAuthBasic(String, String)

View Source
Declaration
public void SetAuthBasic(string name, string value)
Parameters
TypeName
System.Stringname
System.Stringvalue

SetAuthBasicRaw(String)

View Source
Declaration
public void SetAuthBasicRaw(string value)
Parameters
TypeName
System.Stringvalue

SetRange(Int64, Nullable<Int64>)

View Source
Declaration
public void SetRange(long from, long? to = null)
Parameters
TypeName
System.Int64from
System.Nullable<System.Int64>to

AddHeader(String, String)

View Source
Declaration
public void AddHeader(string name, string value)
Parameters
TypeName
System.Stringname
System.Stringvalue