Start the server and send a request.
curl localhost:9000/123
The server will print:
/123/123
Start the server and send a request.
curl localhost:9000/123
The server will print:
/123/123
require 'goliath' | |
class HttpProducer < Goliath::API | |
def response(env) | |
req = Rack::Request.new(env) | |
puts req.fullpath, | |
[200, {}, nil] | |
end | |
end |