Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
class
Pact::Crystal::Consumer::Dsl::HttpResponseBuilder
Inherits
Reference
<
Object
Constructors
new
(pact_handle :
LibPactFfi::PactHandle
, interaction_handle :
LibPactFfi::InteractionHandle
)
Source
Instance methods
body
(body :
String
, content_type :
String
|
Nil
= nil) :
HttpResponseBuilder
Source
header
(name :
String
, value :
String
|
Array
(
String
)) :
HttpResponseBuilder
Source
json_body
(body :
Hash
(
String
,
Object
)) :
HttpResponseBuilder
Source
status
(status :
UInt16
) :
HttpResponseBuilder
Source