class Onyx::HTTP::Spec::ResponseWrapper

Defined in:

onyx/http/spec.cr

Instance Method Summary

Instance Method Detail

def assert(status_code : Int, body : String, headers : Hash(String, String)) #

Assert response status_code, body and headers.


[View source]
def assert(status_code : Int, body : String) #

Assert response status_code and body.


[View source]
def assert(status_code : Int) #

Assert response status_code.


[View source]
def body : String #

#response's body.


[View source]
def headers : ::HTTP::Headers #

#response's headers.


[View source]
def response : ::HTTP::Client::Response #

Direct response accessor, if needed.


[View source]
def status_code : Int32 #

#response's status code.


[View source]