HttpCallBuilderExtAcceptJson Method (HttpCallDescription)

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

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 HttpCallDescription AcceptJson(
	this HttpCallDescription source
)

Parameters

source

Type: HttpCallDescription

The current HttpCallDescription.

Return Value

Type: HttpCallDescription

An updated HttpCallDescription.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type HttpCallDescription. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See

HttpCallBuilderExt Class

AcceptJson Overload

Simple.Connector.Framework.Http Namespace