API version:
Show / Hide Table of Contents

Class HttpRequest

Represents an HTTP request with a URI and optional payload and parameters.

Inheritance
System.Object
HttpRequest
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Okta.Sdk
Assembly: Okta.Sdk.dll
Syntax
public class HttpRequest

Constructors

HttpRequest()

Initializes a new instance of the HttpRequest class.

Declaration
public HttpRequest()

Properties

ContentTransferEncoding

Gets or sets the content encoding.

Declaration
public string ContentTransferEncoding { get; set; }
Property Value
Type Description
System.String

ContentType

Gets or sets the content type.

Declaration
public string ContentType { get; set; }
Property Value
Type Description
System.String

Headers

Gets or sets the headers to send with the request.

Declaration
public IDictionary<string, string> Headers { get; set; }
Property Value
Type Description
System.Collections.Generic.IDictionary<System.String, System.String>

The headers to send with the request.

PathParameters

Gets or sets the set of path parameters to apply to the request URI.

Declaration
public IEnumerable<KeyValuePair<string, object>> PathParameters { get; set; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String, System.Object>>

The set of path parameters to apply to the request URI.

Payload

Gets or sets the request payload.

Declaration
public object Payload { get; set; }
Property Value
Type Description
System.Object

The request payload.

PayloadHandler

Gets the payload handler.

Declaration
protected IPayloadHandler PayloadHandler { get; }
Property Value
Type Description
IPayloadHandler

QueryParameters

Gets or sets the set of query parameters to send with the request.

Declaration
public IEnumerable<KeyValuePair<string, object>> QueryParameters { get; set; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String, System.Object>>

The set of query parameters to send with the request.

Uri

Gets or sets the request URI.

Declaration
public string Uri { get; set; }
Property Value
Type Description
System.String

The request URI.

Verb

Gets or sets the Http verb, also known as the request method.

Declaration
public HttpVerb Verb { get; set; }
Property Value
Type Description
HttpVerb

The request verb.

Methods

GetBody()

Gets the request body.

Declaration
public string GetBody()
Returns
Type Description
System.String

The HTTP request body.

SetHttpRequestMessageContent(HttpRequestMessage)

Sets the content of the specified message.

Declaration
public virtual void SetHttpRequestMessageContent(HttpRequestMessage httpRequestMessage)
Parameters
Type Name Description
System.Net.Http.HttpRequestMessage httpRequestMessage

The message whose content is set.

Back to top Copyright © 2021 Okta, Inc.
Generated with DocFx.