Interface IHttpRequestBuilder<TBuilderInterface>
Interface for a class that can build HTTP requests.
Inherited Members
Namespace: Tableau.Migration.Net
Assembly: Tableau.Migration.dll
Syntax
public interface IHttpRequestBuilder<TBuilderInterface> : IHttpRequestBuilder
Type Parameters
Name | Description |
---|---|
TBuilderInterface |
Methods
Accept(MediaTypeWithQualityHeaderValue, bool)
Sets the Accept header for the request.
Declaration
TBuilderInterface Accept(MediaTypeWithQualityHeaderValue contentType, bool clearExisting)
Parameters
Type | Name | Description |
---|---|---|
MediaTypeWithQualityHeaderValue | contentType | The response content type to accept from the server. |
bool | clearExisting | True to clear any existing Accept content types, false otherwise. |
Returns
Type | Description |
---|---|
TBuilderInterface | The current |
AcceptJson(bool)
Sets the Accept header to accept JSON for the request.
Declaration
TBuilderInterface AcceptJson(bool clearExisting)
Parameters
Type | Name | Description |
---|---|---|
bool | clearExisting | True to clear any existing Accept content types, false otherwise. |
Returns
Type | Description |
---|---|
TBuilderInterface | The current |
AcceptXml(bool)
Sets the Accept header to accept XML for the request.
Declaration
TBuilderInterface AcceptXml(bool clearExisting)
Parameters
Type | Name | Description |
---|---|---|
bool | clearExisting | True to clear any existing Accept content types, false otherwise. |
Returns
Type | Description |
---|---|
TBuilderInterface | The current |
AddHeader(string, string)
Adds a header to the request.
Declaration
TBuilderInterface AddHeader(string name, string value)
Parameters
Type | Name | Description |
---|---|---|
string | name | The header name. |
string | value | The header value. |
Returns
Type | Description |
---|---|
TBuilderInterface | The current |