Table of Contents

Interface IHttpRequestBuilder<TResponse>

Namespace
Homa.Sdk.Foundation
Assembly
Homa.Sdk.Foundation.dll

Interface for building all kinds of HTTP requests

public interface IHttpRequestBuilder<TResponse> : IHttpRequestBuilder<IHttpRequestBuilder<TResponse>, TResponse>

Type Parameters

TResponse
Inherited Members

Remarks

This is a proxy interface allowing for easier wrapping in the HttpRequestBuilder class.

Methods

SetContentDeserializationSettings(JsonSerializerSettings)

Sets the deserialization settings used when parsing the response content.

[Obsolete("Use SetJsonResponseDeserializationSettings instead")]
IHttpRequestBuilder<TResponse> SetContentDeserializationSettings(JsonSerializerSettings serializerSettings)

Parameters

serializerSettings JsonSerializerSettings

Settings used for deserialization.

Returns

IHttpRequestBuilder<TResponse>

SetJsonPayload(object)

Sets the payload of the POST request in a JSON format.

[Obsolete("Use SetJsonRequestBody instead")]
IHttpRequestBuilder<TResponse> SetJsonPayload(object payload)

Parameters

payload object

Object to serialize to a JSON format

Returns

IHttpRequestBuilder<TResponse>

SetJsonPayload(object, JsonSerializerSettings)

Sets the payload of the POST request in a JSON format.

[Obsolete("Use SetJsonRequestBody instead")]
IHttpRequestBuilder<TResponse> SetJsonPayload(object payload, JsonSerializerSettings serializerSettings)

Parameters

payload object

Object to serialize to a JSON format

serializerSettings JsonSerializerSettings

Serialization settings to use

Returns

IHttpRequestBuilder<TResponse>

SetJsonPayload(string)

Sets the payload of the POST request in a JSON format.

[Obsolete("Use SetJsonRequestBody instead")]
IHttpRequestBuilder<TResponse> SetJsonPayload(string jsonPayload)

Parameters

jsonPayload string

Already serialized json

Returns

IHttpRequestBuilder<TResponse>