Table of Contents
API reference

Class DiscordIngressRequest

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

Represents a transport-neutral ingress request that future handlers can operate on.

public sealed class DiscordIngressRequest
Inheritance
DiscordIngressRequest
Inherited Members

Constructors

DiscordIngressRequest(string, Uri?, IReadOnlyDictionary<string, StringValues>?, DiscordIngressPayload?)

Initializes a new instance of the DiscordIngressRequest class.

Properties

Body

Gets the raw request body.

Headers

Gets the request headers.

Method

Gets the request method.

RequestUri

Gets the request URI when one is available.

Methods

GetHeaderValue(string)

Gets the first value for a request header when present.

TryGetHeader(string, out StringValues)

Attempts to resolve a request header by name.

TryGetSingleHeaderValue(string, out string?)

Attempts to resolve a single header value by name.