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

$response.SetHeader

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

Sets a header for the response.

Example:

New-GetRoute -Path "/helloworld" -ScriptBlock {
    $json = @{ wow = "hey" }
    
    $response.SetHeader("test","header");
    
    $response.Json((ConvertTo-Json $json));
}
Clone this wiki locally