Class HttpRequestData
- Namespace
- SunamoHttp.Data
- Assembly
- SunamoHttp.dll
HTTP request configuration data
public class HttpRequestData
- Inheritance
-
HttpRequestData
- Inherited Members
- Extension Methods
Properties
Accept
Gets or sets the Accept header value
public string? Accept { get; set; }
Property Value
Content
Gets or sets the HTTP content for the request Assign: StreamContent, ByteArrayContent, FormUrlEncodedContent, StringContent, MultipartContent, MultipartFormDataContent
public HttpContent? Content { get; set; }
Property Value
ContentType
Gets or sets the Content-Type header value
public string? ContentType { get; set; }
Property Value
EncodingPostData
Gets or sets the encoding for POST data
public Encoding? EncodingPostData { get; set; }
Property Value
ForceEncoding
Gets or sets a value indicating whether to force specific encoding
public bool? ForceEncoding { get; set; }
Property Value
- bool?
ForcedEncoding
Gets or sets the forced encoding for response
public Encoding? ForcedEncoding { get; set; }
Property Value
Headers
Gets or sets the custom HTTP headers
public Dictionary<string, string> Headers { get; set; }
Property Value
KeepAlive
Gets or sets a value indicating whether to keep the connection alive
public bool? KeepAlive { get; set; }
Property Value
- bool?
ThrowEx
Gets or sets a value indicating whether to throw exceptions on errors
public bool ThrowEx { get; set; }
Property Value
TimeoutInS
Gets or sets the timeout in seconds
public int TimeoutInS { get; set; }