instance method
connect
Ruby on Rails 8.0.4
Since v8.0.4Available in: v8.0.4 v8.1.2
Signature
connect(*args, &block)
Define a route that recognizes HTTP CONNECT (and GET) requests. More specifically this recognizes HTTP/1 protocol upgrade requests and HTTP/2 CONNECT requests with the protocol pseudo header. For supported arguments, see match
connect 'live', to: 'live#index'
Parameters
-
argsrest -
blockblock
Source
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 760
def connect(*args, &block)
map_method([:get, :connect], args, &block)
end
Defined in actionpack/lib/action_dispatch/routing/mapper.rb line 760
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Routing::Mapper::HttpHelpers