Sha256: df16fa9b1f1cb95f6afa95d8a36e30e874cc5ad1b092af3aad2113eb5debc764
Contents?: true
Size: 472 Bytes
Versions: 1
Compression:
Stored size: 472 Bytes
Contents
# frozen_string_literal: true module Pragma module Operation class Response # Represents the 201 Created HTTP response. class Created < Response # Initializes the response. # # @param entity [Object] the response's entity # @param headers [Hash] the response's headers def initialize(entity: nil, headers: {}) super(status: 201, entity: entity, headers: headers) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pragma-operation-2.2.0 | lib/pragma/operation/response/created.rb |