Type Hierarchy:

The body response extends the Status with a body

Initializer
Body(Integer code, String mimeType, String data)
Attributes
string
shared actual default String string

A developer-friendly string representing the instance. Concatenates the name of the concrete class of the instance with the hash of the instance. Subclasses are encouraged to refine this implementation to produce a more meaningful representation.

Refined declaration: string
Inherited Attributes
Attributes inherited from: Object
hash
Methods
shared actual default Body header(String->String header)

Add an http header to this status object

Refined declaration: header
headers
shared actual default Body headers({<String->String>*} _headers)

Add an http header to this status object

Refined declaration: headers
send
shared actual default void send(HttpServerResponse resp)

Send the response

Refined declaration: send
Inherited Methods
Methods inherited from: Object
equals
Methods inherited from: Status