Sisk

Method

HttpResponseStreamManager.SetHeader

Namespace
Sisk.Core.Http.Streams
Assembly
Sisk.Core.dll

SetHeader(string, object?) #

Sets the specific HTTP header into this response stream.

C#
public void SetHeader(string headerName, object? value)

Parameters #

headerName string

The HTTP header name.

value object?

The HTTP header value.

Remarks #

Headers are sent immediately, along with the HTTP response code, after starting to send content or closing this stream.

Type to search the documentation and the API reference.