pragmarb/pragma-operation

View on GitHub
lib/pragma/operation/response/no_content.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

module Pragma
  module Operation
    class Response
      # Represents the 204 No Content HTTP response.
      class NoContent < Response
        # Initializes the response.
        #
        # @param headers [Hash] the response's headers
        def initialize(headers: {})
          super(status: 204, entity: nil, headers: headers)
        end
      end
    end
  end
end