Table of Contents
API reference

Method TryGetSingleHeaderValue

Namespace
DisCatSharp.Hosting.AspNetCore.Ingress
Assembly
DisCatSharp.Hosting.AspNetCore.dll

TryGetSingleHeaderValue(string, out string?)

Attempts to resolve a single header value by name.

public bool TryGetSingleHeaderValue(string name, out string? value)

Parameters

name string

The header name to resolve.

value string

The single header value when one is present.

Returns

bool

true when exactly one header value exists.