Class: HttpStub::Server::Stub::Response::Headers

Inherits:
HashWithIndifferentAccess
  • Object
show all
Includes:
Extensions::Core::Hash::Formatted
Defined in:
lib/http_stub/server/stub/response/headers.rb

Class Method Summary collapse

Methods included from Extensions::Core::Hash::Formatted

#to_s

Class Method Details

.create(hash, body) ⇒ Object



9
10
11
# File 'lib/http_stub/server/stub/response/headers.rb', line 9

def self.create(hash, body)
  self.new(body.headers.merge(hash || {}))
end