Skip to content

ProducesAttribute

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.

ProducesAttribute

Sets the content type of a yielded string or byte stream.

public struct ProducesAttribute

content_type

Media type sent with the streamed response, such as text/event-stream.

public content_type: string