module HTTPVersionsMixin

  HTTP_VERSION_1_0     = '1.0'.freeze
  HTTP_VERSION_1_1     = '1.1'.freeze
  DEFAULT_HTTP_VERSION = HTTP_VERSION_1_1
end

module ConnectionMixin

  # Obtain the IP address of the remote connection
  def remote_ip
    @socket.peeraddr(false)[3]
  end
  alias_method :remote_addr, :remote_ip

  # Obtain the hostname of the remote connection
  def remote_host
    # NOTE: Celluloid::IO does not yet support non-blocking reverse DNS
    @socket.peeraddr(true)[2]
  end
end

module RequestMixin

  def method
    @http_parser.http_method
  end

  def headers
    @http_parser.headers
  end

  def [] header
    headers[header]
  end

  def version
    @http_parser.http_version || HTTPVersionsMixin::DEFAULT_HTTP_VERSION
  end

  def url
    @http_parser.url
  end

  def uri
    @uri ||= URI(url)
  end

  def path
    @http_parser.request_path
  end

  def query_string
    @http_parser.query_string
  end

end

module Reel
  module HTTPVersionsMixin

    HTTP_VERSION_1_0     = '1.0'.freeze
    HTTP_VERSION_1_1     = '1.1'.freeze
    DEFAULT_HTTP_VERSION = HTTP_VERSION_1_1
  end

  module ConnectionMixin

    # Obtain the IP address of the remote connection
    def remote_ip
      @socket.peeraddr(false)[3]
    end
    alias_method :remote_addr, :remote_ip

    # Obtain the hostname of the remote connection
    def remote_host
      # NOTE: Celluloid::IO does not yet support non-blocking reverse DNS
      @socket.peeraddr(true)[2]
    end
  end

  module RequestMixin

    def method
      @http_parser.http_method
    end

    def headers
      @http_parser.headers
    end

    def [] header
      headers[header]
    end

    def version
      @http_parser.http_version || HTTPVersionsMixin::DEFAULT_HTTP_VERSION
    end

    def url
      @http_parser.url
    end

    def uri
      @uri ||= URI(url)
    end

    def path
      @http_parser.request_path
    end

    def query_string
      @http_parser.query_string
    end

  end
end

Move the Mixins into the Reel module
Move the Mixins into the Reel module
