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

API Browser

Member group

Create

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

Overloads / Variants

Create

static func Create(method: HttpMethod, uri: Uri, content: HttpContent) -> Result<HttpRequest, HttpError>

Source file: HttpClient.rvn

Constructs a URI-based request with explicit method and content.

Parameters

Name Type Description
method HttpMethod
uri Uri
content HttpContent

Return value

Result<HttpRequest, HttpError>

Create

static func Create(method: HttpMethod, uri: Uri) -> Result<HttpRequest, HttpError>

Source file: HttpClient.rvn

Constructs a URI-based request using a predefined or custom method.

Parameters

Name Type Description
method HttpMethod
uri Uri

Return value

Result<HttpRequest, HttpError>

Create

static func Create(method: HttpMethod, url: string, content: HttpContent) -> Result<HttpRequest, HttpError>

Source file: HttpClient.rvn

Constructs a request with explicit method and content; transport bounds apply when sent.

Parameters

Name Type Description
method HttpMethod
url String
content HttpContent

Return value

Result<HttpRequest, HttpError>

Create

static func Create(method: HttpMethod, url: string) -> Result<HttpRequest, HttpError>

Source file: HttpClient.rvn

Constructs a request using a predefined or custom method, without performing I/O.

Parameters

Name Type Description
method HttpMethod
url String

Return value

Result<HttpRequest, HttpError>