package websocket
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
val upgrade_present : Cohttp.Header.t -> bool
module Rng : sig ... end
module Frame : sig ... end
val check_origin :
?origin_mandatory:bool ->
hosts:string list ->
Cohttp.Request.t ->
bool
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.
val check_origin_with_host : Cohttp.Request.t -> bool
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
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>