Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Member group

.ctor

Declaring type: HttpResponse
Module: System.Web.Http
Assembly: System.Web.dll
Source file: HttpClient.rvn

Overloads / Variants

.ctor

init(statusCode: HttpStatusCode, headers: Sequence<HttpHeader>, content: HttpContent) -> void

Source file: HttpClient.rvn

Creates a response retaining its body without reading or copying it. Content metadata replaces any Content-Type header; other headers are preserved.

Parameters

Name Type Description
statusCode HttpStatusCode
headers Sequence<HttpHeader>
content HttpContent

.ctor

init(statusCode: int, headers: Sequence<HttpHeader>, content: HttpContent) -> void

Source file: HttpClient.rvn

Creates a response from a numeric status and an explicit content producer. The transport validates framing and length before sending.

Parameters

Name Type Description
statusCode Int32
headers Sequence<HttpHeader>
content HttpContent