Sha256: a72b9a57a3ddea365e9076ba1fda1a24eb07ccd7715ce8286b694a1d568449c1
Contents?: true
Size: 254 Bytes
Versions: 3
Compression:
Stored size: 254 Bytes
Contents
Toycol::Protocol.define do request.path do |message| %r{(?<path>\/\w*)}.match(message)[:path] end request.query do |message| %r{\?(?<query>.+)}.match(message) { |m| m[:query] } end request.http_method do |message| "GET" end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
toycol-1.0.0 | examples/anonymous/Protocolfile |
toycol-0.3.1 | examples/anonymous/Protocolfile |
toycol-0.3.0 | examples/anonymous/Protocolfile |