Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
cossack
v0.1.0
Cossack
Client
Connection
ConnectionMiddleware
Env
Error
HttpConnection
Middleware
NullMiddleware
Params
Request
Response
TimeoutError
Built with Crystal 1.9.2
2023-10-08 19:22:37 UTC
class
Cossack::Response
Cossack::Response
Reference
Object
Defined in:
cossack/response.cr
Constructors
.new
(status : Int32, headers : HTTP::Headers, body : String)
Class Method Summary
.null_response
Instance Method Summary
#body
: String
#headers
: HTTP::Headers
#status
: Int32
Constructor Detail
def self.
new
(status : Int32, headers : HTTP::Headers, body : String)
#
[
View source
]
Class Method Detail
def self.
null_response
#
[
View source
]
Instance Method Detail
def
body
: String
#
[
View source
]
def
headers
: HTTP::Headers
#
[
View source
]
def
status
: Int32
#
[
View source
]