Repository URL to install this package:
|
Version:
0.1.2.1 ▾
|
module HTTP
module Commands
class Post
include Command
def call(body, uri, headers=nil)
Request.(
self.class.action,
uri,
body: body,
headers: headers,
connection: connection
)
end
module Substitute
def self.build
Commands::Substitute.build status_code, reason_phrase
end
def self.reason_phrase
'Created'
end
def self.status_code
201
end
end
end
end
end