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

API Browser

Member group

Post

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

Overloads / Variants

Post

func Post(uri: Uri, content: HttpContent, cancellationToken: CancellationToken = default) -> Task<Result<HttpResponse, HttpError>>

Source file: HttpClient.rvn

Posts content to a URI using the same base-resolution rules as Get. Posts content through Send, forwarding the cancellation token unchanged.

Parameters

Name Type Description
uri Uri
content HttpContent
cancellationToken CancellationToken

Return value

Task<Result<HttpResponse, HttpError>>

Post

func Post(url: string, content: HttpContent, cancellationToken: CancellationToken = default) -> Task<Result<HttpResponse, HttpError>>

Source file: HttpClient.rvn

Posts buffered content using the same BaseUri and handler rules as Get. Posts content with cooperative exchange cancellation.

Parameters

Name Type Description
url String
content HttpContent
cancellationToken CancellationToken

Return value

Task<Result<HttpResponse, HttpError>>