Toycol::Protocol.define do request.path do |message| %r{(?\/\w*)}.match(message)[:path] end request.query do |message| %r{\?(?.+)}.match(message) { |m| m[:query] } end request.http_method do |message| "GET" end end