API version:
Show / Hide Table of Contents

Interface IPayloadHandler

A class responsible for providing body and message content.

Namespace: Okta.Sdk.Internal
Assembly: Okta.Sdk.dll
Syntax
public interface IPayloadHandler

Properties

ContentType

Gets the content type.

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

Methods

GetBody(HttpRequest)

Gets the body for the specified request.

Declaration
string GetBody(HttpRequest httpRequest)
Parameters
Type Name Description
HttpRequest httpRequest

The request whose body is retrieved.

Returns
Type Description
System.String

The request body.

SetHttpRequestMessageContent(HttpRequest, HttpRequestMessage)

Set the content of the specified request message based on the specified request.

Declaration
void SetHttpRequestMessageContent(HttpRequest httpRequest, HttpRequestMessage httpRequestMessage)
Parameters
Type Name Description
HttpRequest httpRequest

The request used to create the message content.

System.Net.Http.HttpRequestMessage httpRequestMessage

The message whose content is set.

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