rom-rb/rom-http

View on GitHub
lib/rom/http/handlers.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true

require "rom/http/handlers/json"

module ROM
  module HTTP
    # Request/response handler registry
    #
    # @api public
    class Handlers
      extend Dry::Container::Mixin

      register(:json, request: JSONRequest, response: JSONResponse)
    end
  end
end