Sha256: 472bd2846c3ba09e5d7f052d28fd1c8958a858d0c82812c106dd01405dd87160

Contents?: true

Size: 462 Bytes

Versions: 1

Compression:

Stored size: 462 Bytes

Contents

# frozen_string_literal: true

module Pragma
  module Operation
    class Response
      # Represents the 200 Ok HTTP response.
      class Ok < 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: 200, 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/ok.rb