Table of Contents
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

statusCode int

The HTTP status code to return.

body DiscordIngressPayload

The response body.

contentType string

The response content type.

headers IReadOnlyDictionary<string, StringValues>

Additional response headers.