Sha256: 082b9e0687d15b4d5af1c6bd49aecdfeb26e1b9da834cb71450b8a1c9cc47508
Contents?: true
Size: 768 Bytes
Versions: 1
Compression:
Stored size: 768 Bytes
Contents
# # OverSIP - WebSocket Access Policy. # # # Fill these functions with your own access policy for allowing or # disallowing WebSocket connections from clients. # # If any of the following methods return _false_ then the WebSocket # connection is rejected. module OverSIP::WebSocket::Policy # Check the value of the Host header, by splitting it into # host (a String) and port (Fixnum). Both could be _nil_. def self.check_hostport host=nil, port=nil return true end # Check the value of the Origin header (a String with original value). def self.check_origin origin=nil return true end # Check the request URI path (String) and query (String). Both can be _nil_. def self.check_request_uri path=nil, query=nil return true end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
oversip-1.0.7.beta1 | etc/websocket_policy.rb |