class

Rayo::Context

Inherits Reference < Object

Views expire when the response finishes. A deferred response keeps its input pinned.

Constructors

new(id : Int32)
Source

Instance methods

body
Source
cancel_defer
Source
capture(name : String, value : Bytes) : Nil
Source
code
Source
compress
Source
compress=(compress : Bool)
Source
content_type(value : String | Bytes) : Nil
Source
content_type
Source
database_error
Source
db_failed
Source
db_failed=(db_failed : Bool)
Source
db_pending
Source
db_pending=(db_pending : Int32)
Source
defer
Source
deferred
Source
header(name : String, value : String | Bytes) : Nil
Source
header(name : String) : Bytes
Source
headers
Source
json
Source
json
Source
json_array(enumerable, &) : Nil
Source
json_body
Source
method
Source
output
Source
param(name : String) : Bytes
Source
param_count
Source
param_count=(param_count : Int32)
Source
param_i64(name : String) : Int64
Source
path
Source
query(name : String) : Bytes
Source
query
Source
request
Source
reset(request : HTTP::Request) : Nil
Source
response_header(name : String) : Bytes

Borrowed response header view, valid until the next header update.

Source
serial
Source
status(code : Int32) : Nil
Source
status
Source
text(value : String) : Nil
Source
work_pending
Source
work_pending=(work_pending : Int32)
Source
write(value : Bytes) : Nil
Source

Nested types