Table of Contents

Method SetHeader

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

SetHeader(string, object?)

Sets the specific HTTP header into this response stream.

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.