API version:
Show / Hide Table of Contents

Class RequestContext

Contains information about the downstream request from a client or browser to the application.

Inheritance
System.Object
RequestContext
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 RequestContext
Remarks

This class is used to pass request details (like the X-Forwarded-For header) from the client request through to the Okta API. Null properties are ignored.

Properties

Accept

Gets or sets the Accept value that should be sent to the Okta API.

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

The Accept value.

AcceptLanguage

Gets or sets the Accept-Language value that should be sent to the Okta API.

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

The Accept-Language value.

ContentTransferEncoding

Gets or sets the Content-Transfer-Encoding value that should be sent to the Okta API.

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

The Content-Transfer-Encoding value.

ContentType

Gets or sets the Content-Type.

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

UserAgent

Gets or sets the User-Agent of the downstream client.

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

The User-Agent value.

XForwardedFor

Gets or sets the X-Forwarded-For value that should be sent to the Okta API.

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

The X-Forwarded-For value.

XForwardedPort

Gets or sets the X-Forwarded-Port value that should be sent to the Okta API.

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

The X-Forwarded-Port value.

XForwardedProto

Gets or sets the X-Forwarded-Proto value that should be sent to the Okta API.

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

The X-Forwarded-Proto value.

Methods

Clone()

Clone the current request context.

Declaration
public RequestContext Clone()
Returns
Type Description
RequestContext

A clone of the current request context.

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