Websocket
module Rng : sig ... end
module Frame : sig ... end
check_origin ~hosts req
will return true
if the origin header exists and matches one of the provided hostnames. If origin header is not present, return not origin_mandatory
. Default value of origin_mandatory
is false. If origin header is present but does not contain a hostname, return false
. Hostnames in hosts
are (ascii-)lowercased when compared.
check_origin_with_host
returns false if the origin header exists and its host doesn't match the host header
module type S = sig ... end