API reference
Class DiscordIncomingWebhookContext
- Namespace
- DisCatSharp.Hosting.AspNetCore.Ingress.IncomingWebhooks
- Assembly
- DisCatSharp.Hosting.AspNetCore.dll
Represents an incoming webhook request received through the ASP.NET Core ingress surface.
public sealed class DiscordIncomingWebhookContext
- Inheritance
-
DiscordIncomingWebhookContext
- Inherited Members
Remarks
Initializes a new instance of the DiscordIncomingWebhookContext class.
Constructors
- DiscordIncomingWebhookContext(DiscordIngressRequest)
Represents an incoming webhook request received through the ASP.NET Core ingress surface.
Properties
- Body
Gets the raw request body.
- Headers
Gets the incoming request headers.
- Method
Gets the incoming HTTP method.
- Request
Gets the transport-neutral ingress request.
- RequestUri
Gets the request URI when 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.