Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Websocketval upgrade_present : Cohttp.Header.t -> boolmodule Rng : sig ... endmodule Frame : sig ... endval check_origin :
?origin_mandatory:bool ->
hosts:string list ->
Cohttp.Request.t ->
boolcheck_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.
val check_origin_with_host : Cohttp.Request.t -> boolcheck_origin_with_host returns false if the origin header exists and its host doesn't match the host header
module type S = sig ... end