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
Type | Name |
---|---|
System.String | value |
SetAuthBasic(String, String)
View Source
Declaration
public void SetAuthBasic(string name, string value)
Parameters
Type | Name |
---|---|
System.String | name |
System.String | value |
SetAuthBasicRaw(String)
View Source
Declaration
public void SetAuthBasicRaw(string value)
Parameters
Type | Name |
---|---|
System.String | value |
SetRange(Int64, Nullable<Int64>)
View Source
Declaration
public void SetRange(long from, long? to = null)
Parameters
Type | Name |
---|---|
System.Int64 | from |
System.Nullable<System.Int64> | to |
AddHeader(String, String)
View Source
Declaration
public void AddHeader(string name, string value)
Parameters
Type | Name |
---|---|
System.String | name |
System.String | value |