Interface IHttpContentRequestBuilder<TBuilderInterface>
Interface for a class that can build HTTP content requests.
Inherited Members
Namespace: Tableau.Migration.Net
Assembly: Tableau.Migration.dll
Syntax
public interface IHttpContentRequestBuilder<TBuilderInterface> : IHttpRequestBuilder<TBuilderInterface>, IHttpRequestBuilder
Type Parameters
Name | Description |
---|---|
TBuilderInterface |
Methods
WithContent(HttpContent)
Sets the content for the request.
Declaration
TBuilderInterface WithContent(HttpContent content)
Parameters
Type | Name | Description |
---|---|---|
HttpContent | content | The request's content. |
Returns
Type | Description |
---|---|
TBuilderInterface | The current |
WithContent(string, MediaTypeWithQualityHeaderValue)
Sets the content for the request.
Declaration
TBuilderInterface WithContent(string content, MediaTypeWithQualityHeaderValue contentType)
Parameters
Type | Name | Description |
---|---|---|
string | content | The request's content. |
MediaTypeWithQualityHeaderValue | contentType | The request's content type. |
Returns
Type | Description |
---|---|
TBuilderInterface | The current |
WithContent<TContent>(TContent, MediaTypeWithQualityHeaderValue)
Sets the content for the request.
Declaration
TBuilderInterface WithContent<TContent>(TContent content, MediaTypeWithQualityHeaderValue contentType) where TContent : class
Parameters
Type | Name | Description |
---|---|---|
TContent | content | The request's content. |
MediaTypeWithQualityHeaderValue | contentType | The request's content type. |
Returns
Type | Description |
---|---|
TBuilderInterface | The current |
Type Parameters
Name | Description |
---|---|
TContent | The content's deserialized type. |
WithJsonContent(string)
Sets the JSON content for the request.
Declaration
TBuilderInterface WithJsonContent(string content)
Parameters
Type | Name | Description |
---|---|---|
string | content | The request's content. |
Returns
Type | Description |
---|---|
TBuilderInterface | The current |
WithJsonContent<TContent>(TContent)
Sets the JSON content for the request.
Declaration
TBuilderInterface WithJsonContent<TContent>(TContent content) where TContent : class
Parameters
Type | Name | Description |
---|---|---|
TContent | content | The request's content. |
Returns
Type | Description |
---|---|
TBuilderInterface | The current |
Type Parameters
Name | Description |
---|---|
TContent |
WithXmlContent(string)
Sets the XML content for the request.
Declaration
TBuilderInterface WithXmlContent(string content)
Parameters
Type | Name | Description |
---|---|---|
string | content | The request's content. |
Returns
Type | Description |
---|---|
TBuilderInterface | The current |
WithXmlContent<TContent>(TContent)
Sets the XML content for the request.
Declaration
TBuilderInterface WithXmlContent<TContent>(TContent content) where TContent : class
Parameters
Type | Name | Description |
---|---|---|
TContent | content | The request's content. |
Returns
Type | Description |
---|---|
TBuilderInterface | The current |
Type Parameters
Name | Description |
---|---|
TContent |