Skip to content

ResponseAttribute

1 min read

Import: import system.webapi;

Read the usage guide for examples and common tasks. This reference lists the public declarations for this part of the library. See Reading API signatures for parameter and result notation.

ResponseAttribute

Documents an additional explicit response without changing handler behavior.

public struct ResponseAttribute

status

HTTP response status code.

public status: int

description

Description displayed in the API documentation.

public description: string

model

Optional declaration describing the response body.

public model: Option<DeclarationPath>

content_type

Media type of the response body.

public content_type: Option<string>