API reference
Constructor DiscordIngressResponse
- Namespace
- DisCatSharp.Hosting.AspNetCore.Ingress
- Assembly
- DisCatSharp.Hosting.AspNetCore.dll
DiscordIngressResponse(int, DiscordIngressPayload?, string?, IReadOnlyDictionary<string, StringValues>?)
Initializes a new instance of the DiscordIngressResponse class.
public DiscordIngressResponse(int statusCode, DiscordIngressPayload? body = null, string? contentType = null, IReadOnlyDictionary<string, StringValues>? headers = null)
Parameters
statusCodeintThe HTTP status code to return.
bodyDiscordIngressPayloadThe response body.
contentTypestringThe response content type.
headersIReadOnlyDictionary<string, StringValues>Additional response headers.