Skip to content
This repository was archived by the owner on Dec 8, 2021. It is now read-only.

$response.Send

Tyler James Leonhardt edited this page Nov 11, 2017 · 2 revisions

Sets the content of the response.

This does not modify the StatusCode or ContentType. If these aren't set, the defaults will be used:

ContentType: "text/plain" StatusCode: 200

Example:

New-GetRoute -Path "/helloworld" -ScriptBlock {
    $response.Send('Hello World!');
}
Clone this wiki locally