Sha256: eca2732cd2c3cba8b9586a08b2ca29f9389e90da5e481fa3d8478cb04f788750

Contents?: true

Size: 165 Bytes

Versions: 4

Compression:

Stored size: 165 Bytes

Contents

class Simple::Httpd::BaseController
  helpers do
    def origin
      request["Origin"] ||
        "#{request.scheme}://#{request.host_with_port}"
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
simple-httpd-0.4.2 lib/simple/httpd/base_controller/origin.rb
simple-httpd-0.4.1 lib/simple/httpd/base_controller/origin.rb
simple-httpd-0.4.0 lib/simple/httpd/base_controller/origin.rb
simple-httpd-0.3.5 lib/simple/httpd/base_controller/origin.rb