Class HttpRequestSettings

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
public class HttpRequestSettings : object

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

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

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

Requirements

Namespace: Westwind.Utilities
Assembly: westwind.utilities.dll

© West Wind Technologies, 1996-2020 • Updated: 07/15/20
Comment or report problem with topic