package opium
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
OCaml web framework
Install
dune-project
Dependency
Authors
Maintainers
Sources
opium-0.20.0.tbz
sha256=326b91866de90baf535f8b7d4b2ff23e39d952e573c04b3c13f1054b59ff2fb6
sha512=59b83e7c8fe5f7ae328fb7f2343fe5b8fb735e8f6ee263cfd6c75bb179688ef7cf2b4586b35a2231ed3f3c1ada543021b7a4759326ae095eb77a5f38b9fa3a8a
doc/opium/Opium/Handler/index.html
Module Opium.HandlerSource
Collection of handlers commonly used to build Opium applications
Source
val serve :
?mime_type:string ->
?etag:string ->
?headers:Headers.t ->
(unit ->
(Body.t, [ Status.client_error | Status.server_error ]) Lwt_result.t) ->
Rock.Handler.tserve ?mime_type ?etag ?headers read returns a handler that will serve the result of read ().
It is typically used to serve static file by providing a read function, either reading from the local filesystem, or from a remote one such as Amazon S3.
The response will contain an ETag header and a the HTTP code 304 will be returned if the computed ETag matches the one specified in the request.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>