Sha256: 9436b2920cd851c1d79641175839053de681b2e811dcac2c950b738730319f36

Contents?: true

Size: 309 Bytes

Versions: 1

Compression:

Stored size: 309 Bytes

Contents

require 'sinatra'

class App < Sinatra::Base
  get '/bar' do
    headers "Sent-Request-Uri" => request.env['REQUEST_URI'].to_s,
            "Sent-Host" => request.env['HTTP_HOST'].to_s, 
            "Sent-Proxy-Connection" => request.env['HTTP_PROXY_CONNECTION'].to_s
    'proxied content'
  end
end

run App

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
excon-0.6.0 tests/rackups/proxy.ru