HttpRequestSettings Class

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.

System.Object
   Westwind.Utilities.HttpRequestSettings

Class Members

MemberDescription
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
DontThrowOnErrorStatusCodes By default (false) throws a Web Exception on 500 and 400 repsonses. This is the default WebClient behavior. If `true` doesn't throw, but instead returns the HTTP response. Useful if you need to…
Encoding Content Encoding for the data sent to to server
Headers Any Http request headers you want to set for this request
HttpVerb The HTTP verb to use when sending the request
HttpVersion Http Protocol Version 1.1
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.
PreAuthenticate Determines whether credentials pre-authenticate
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
Timeout The request timeout in milliseconds. 0 for default (20 seconds typically)
Url The URL to send the request to
UserAgent The User Agent string sent to the server
Namespace: Westwind.Utilities

Assembly: Westwind.Utilities.dll