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
serializerSettingsJsonSerializerSettingsSettings 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
payloadobjectObject 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
payloadobjectObject to serialize to a JSON format
serializerSettingsJsonSerializerSettingsSerialization 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
jsonPayloadstringAlready serialized json
Returns
- IHttpRequestBuilder<TResponse>