HttpCallBuilderExt Class

Provides extension methods to configure Http calls.

Inheritance Hierarchy

SystemObject 

Simple.Connector.Framework.HttpHttpCallBuilderExt

Namespace:  Simple.Connector.Framework.Http

Assembly: Simple.Connector.Framework (in Simple.Connector.Framework.dll) Version: 1.4.0.0 (1.4.0.0)

Syntax

public static class HttpCallBuilderExt

The HttpCallBuilderExt type exposes the following members.

Methods

  Name Description
Public method Static member

AcceptJson(HttpCallDescription)

A helper method to add the header Accept: application/json.

Public method Static member

AcceptJson(HttpQueryRegistration)

A helper method to add the header Accept: application/json.

Public method Static member

AsGet

A helper method to set the HTTP method to GET.

Public method Static member

AsHttpMethod

Configures the HTTP method to be the value in method.

Public method Static member

AsPut

A helper method to set the HTTP method to PUT.

Public method Static member

EnumerateResponseAsTItem, TResponse

Configures the enumeration of individual items from the results of a query.

Public method Static member

EnumerateSingleResponseAsT, TS

Enumerates a single value from a response.

Public method Static member

FromContextToHeader

Maps a value from the Connector's context to a Header.

Public method Static member

FromContextToQuery

Maps a value from the Connector's context to a query parameter.

Public method Static member

FromInputsToForm(HttpCallDescription, IEnumerableString)

Maps a value from the entity fields to an HTTP Form body.

Public method Static member

FromInputsToForm(HttpCallDescription, String)

Maps a value from the entity fields to an HTTP Form body.

Public method Static member

FromInputToBodyTSerializedPayload

From input to HTTP body.

Public method Static member

FromInputToForm

From input to HTTP form.

Public method Static member

FromInputToHeader

From input to HTTP header.

Public method Static member

FromInputToQuery(HttpCallDescription, String)

From input to HTTP query paremeter.

Public method Static member

FromInputToQuery(HttpQueryRegistration, String)

From input to HTTP query paremeter.

Public method Static member

FromInputToQueryT(HttpCallDescription, String, String, FuncT, String)

From input to HTTP query paremeter.

Public method Static member

FromInputToRequiredQueryT

From Input to query parameters that raise an error if not specified.

Public method Static member

FromInputToWrappedBodyTItem, TWrapper

From Input to body, wrapped in an outer type.

Public method Static member

FromResponseT(HttpCallDescription)

Maps a value from the response.

Public method Static member

FromResponseTItem, TResponse(HttpCallDescription, FuncTResponse, TItem)

Maps a contained value from the response.

Public method Static member

ToHeader(HttpCallDescription, String, String)

Maps a value to the HTTP headers.

Public method Static member

ToHeader(HttpQueryRegistration, String, String)

Maps a value to the HTTP headers.

Public method Static member

ToQuery(HttpCallDescription, String, String)

Maps a query parameter.

Public method Static member

ToQuery(HttpQueryRegistration, String, String)

Adds a query parameter to an HTTP call.

See Also

Simple.Connector.Framework.Http Namespace