Interface IResponseBuilder
Interface for an object that can build a HTTP response.
Namespace: Tableau.Migration.Net.Simulation.Responses
Assembly: Tableau.Migration.dll
Syntax
public interface IResponseBuilder
Properties
RequiresAuthentication
Gets whether or not an unauthenticated response should be returned if the request is unauthenticated.
Declaration
bool RequiresAuthentication { get; }
Property Value
Type | Description |
---|---|
bool |
Methods
RespondAsync(HttpRequestMessage, CancellationToken)
Builds a HTTP response for the given request.
Declaration
Task<HttpResponseMessage> RespondAsync(HttpRequestMessage request, CancellationToken cancel)
Parameters
Type | Name | Description |
---|---|---|
HttpRequestMessage | request | The HTTP request to respond to. |
CancellationToken | cancel | The cancellation token to obey. |
Returns
Type | Description |
---|---|
Task<HttpResponseMessage> | The HTTP response. |