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

API Browser

Member group

RespondText

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

Overloads / Variants

RespondText

func RespondText(statusCode: HttpStatusCode, text: string) -> ()

Source file: HttpServer.rvn

Configures a status and UTF-8 text/plain content; call Complete to send it.

Parameters

Name Type Description
statusCode HttpStatusCode
text String

Return value

()

RespondText

func RespondText(text: string) -> ()

Source file: HttpServer.rvn

Configures status 200 and UTF-8 text/plain content; does not send it.

Parameters

Name Type Description
text String

Return value

()