Class HttpResponse<TPayload>
Http response consisting of the status code and a payload.
public class HttpResponse<TPayload> : HttpResponse
Type Parameters
TPayload
- Inheritance
-
HttpResponse<TPayload>
- Inherited Members
Constructors
HttpResponse()
public HttpResponse()
HttpResponse(int, Dictionary<string, string>)
public HttpResponse(int statusCode, Dictionary<string, string> headers = null)
Parameters
statusCodeintheadersDictionary<string, string>
HttpResponse(HttpStatusCode, Dictionary<string, string>)
public HttpResponse(HttpStatusCode statusCode, Dictionary<string, string> headers = null)
Parameters
statusCodeHttpStatusCodeheadersDictionary<string, string>
Properties
Payload
public TPayload Payload { get; set; }
Property Value
- TPayload