API reference
Class DiscordIngressResponse
- Namespace
- DisCatSharp.Hosting.AspNetCore.Ingress
- Assembly
- DisCatSharp.Hosting.AspNetCore.dll
Represents a transport-neutral ingress response for future endpoint handlers.
public sealed class DiscordIngressResponse
- Inheritance
-
DiscordIngressResponse
- Inherited Members
Constructors
- DiscordIngressResponse(int, DiscordIngressPayload?, string?, IReadOnlyDictionary<string, StringValues>?)
Initializes a new instance of the DiscordIngressResponse class.
Properties
- Body
Gets the response body.
- ContentType
Gets the response content type.
- Headers
Gets any additional response headers.
- StatusCode
Gets the HTTP status code to return.
Methods
- Acknowledge()
Creates the standard Discord acknowledgment response.
- Empty(int)
Creates a response without a body.
- Json(int, string)
Creates a JSON response.
- NoContent()
Creates a
204 No Contentresponse.
- Text(int, string, string)
Creates a text response.