Type Hierarchy:
Direct Known Subclasses: Body

A status response provides a simple http response with a status code and headers.

Initializer
Status(Integer code)
Attributes
code
shared Integer code
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
body
shared Body body(String data)

Create a new Body response that extends this Status response

shared default Status header(String->String header)

Add an http header to this status object

headers
shared default Status headers({<String->String>*} _headers)

Add an http header to this status object

send
shared actual default void send(HttpServerResponse resp)

Send the response to the client via the Vert.x response

Refined declaration: send
template
shared Body template(String path, {<String->Object>*} values)
Inherited Methods
Methods inherited from: Object
equals