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

API Browser

Member group

GetString

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

Overloads / Variants

GetString

func GetString(uri: Uri, cancellationToken: CancellationToken = default) -> Task<Result<string, HttpError>>

Source file: HttpClient.rvn

Fetches a bounded response and decodes its buffered body as strict UTF-8. Fetches UTF-8 text, preserving HTTP failures and acknowledged task cancellation.

Parameters

Name Type Description
uri Uri
cancellationToken CancellationToken

Return value

Task<Result<String, HttpError>>

GetString

func GetString(url: string, cancellationToken: CancellationToken = default) -> Task<Result<string, HttpError>>

Source file: HttpClient.rvn

Fetches a bounded response and decodes its buffered body as strict UTF-8. Fetches UTF-8 text, preserving HTTP failures and acknowledged task cancellation.

Parameters

Name Type Description
url String
cancellationToken CancellationToken

Return value

Task<Result<String, HttpError>>