Configuration object for Http Requests used by the HttpUtils methods. Allows you to set the URL, verb, headers proxy and credentials that are then passed to the HTTP client.
Westwind.Utilities.HttpRequestSettings
public class HttpRequestSettings : object
Class Members
Member | Description | |
---|---|---|
Constructor |
||
CapturedRequestContent |
Capture request string data that was actually sent to the server. | |
CapturedResponseContent |
Captured string Response Data from the server | |
Content |
The Request content to send to the server. Data can be either string or byte[] type | |
ContentType |
The content type of any request data sent to the server in the Data property. | |
Credentials |
Authentication information for this request | |
Headers |
Any Http request headers you want to set for this request | |
HttpVerb |
The HTTP verb to use when sending the request | |
IsRawData |
When true data is not translated. For example when using JSON Request if you want to send raw POST data rather than a serialized object. | |
Proxy |
An optional proxy to set for this request | |
Response |
Instance of the full HttpResponse object that gives access to the full HttpWebResponse object to provide things like Response headers, status etc. | |
ResponseByteData |
Capture binary Response data from the server when using the Data methods rather than string methods. | |
ResponseStatusCode |
The HTTP Status code of the HTTP response | |
Url |
The URL to send the request to |
Requirements
Namespace: Westwind.UtilitiesAssembly: westwind.utilities.dll
© West Wind Technologies, 1996-2016 • Updated: 12/12/15
Comment or report problem with topic