package opium_kernel
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Simple cookie module. Cookies are base64'd and percent encoded.
val cookies : Rock.Request.t -> (string * string) list
Fetch all cookies from a rock request
val get : Rock.Request.t -> key:string -> string option
Get the follow of a cookie with a certain key
val set :
?expiration:Cohttp.Cookie.expiration ->
Rock.Response.t ->
key:string ->
data:string ->
Rock.Response.t
Set the value of a cookie with a certain key in a response
val set_cookies :
?expiration:Cohttp.Cookie.expiration ->
Rock.Response.t ->
(string * string) list ->
Rock.Response.t
Like set but will do multiple cookies at once
val m : Rock.Middleware.t
Rock middleware to add the the functionality above
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>