Improve this Doc View Source

Class HttpContentFactory

Factory methods to create HttpContent

Inheritance
System.Object
HttpContentFactory
Namespace:Dapplo.HttpExtensions.Factory
Assembly:Dapplo.HttpExtensions.dll
Syntax
public class HttpContentFactory

Methods

| Improve this Doc View Source

Create(Type, Object)

Create a HttpContent object from the supplied content

Declaration
public static HttpContent Create(Type inputType, object content)
Parameters
Type Name Description
System.Type inputType

type for the content

System.Object content

content

Returns
Type Description
System.Net.Http.HttpContent

HttpContent

| Improve this Doc View Source

Create<TInput>(TInput)

Create a HttpContent object from the supplied content

Declaration
public static HttpContent Create<TInput>(TInput content)where TInput : class
Parameters
Type Name Description
TInput content

content

Returns
Type Description
System.Net.Http.HttpContent

HttpContent