-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Static linking: improve API doc of extensions
- Loading branch information
Showing
7 changed files
with
119 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,23 @@ | ||
(** Cross-Origin Resource Sharing *) | ||
|
||
(** If you want to use this extension with Ocsigen Server's configuration file, | ||
+ have a look at the <<a_manual chapter="cors"|manual page>>. | ||
+ If you are using Ocsigen Server as a library, use the interface described | ||
+ here. Each of these functions behaves exactly as its configuration file | ||
counterpart. | ||
+*) | ||
|
||
(** | ||
This module belongs to ocamlfind package | ||
[ocsigenserver.ext.cors]. | ||
*) | ||
|
||
val run : | ||
?credentials:bool | ||
-> ?max_age:int | ||
-> ?exposed_headers:string list | ||
-> ?methods:Cohttp.Code.meth list | ||
-> unit | ||
-> Ocsigen_server.instruction | ||
(** [run] makes it possible to use this extension without | ||
configuration file. *) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,30 @@ | ||
val section : Lwt_log_core.section | ||
(** use Lwt_log.Section.set_level in order to debug *) | ||
(** Deflatemod: compress output data *) | ||
|
||
(** If you want to use this extension with Ocsigen Server's configuration file, | ||
+ have a look at the <<a_manual chapter="deflatemod"|manual page>>. | ||
+ If you are using Ocsigen Server as a library, use the interface described | ||
+ here. Each of these functions behaves exactly as its configuration file | ||
counterpart. | ||
+*) | ||
|
||
(** | ||
This module belongs to ocamlfind package | ||
[ocsigenserver.ext.deflatemod]. | ||
*) | ||
|
||
val set_compress_level : int -> unit | ||
val set_buffer_size : int -> unit | ||
|
||
type filter = [`Type of string option * string option | `Extension of string] | ||
(** Describes the content to deflate, either using its content type, | ||
or file extension *) | ||
|
||
val run : | ||
mode:[`All_but of filter list | `Only of filter list] | ||
-> unit | ||
-> Ocsigen_server.instruction | ||
(** [run ~mode ()] makes it possible to use this extension without | ||
configuration file. *) | ||
|
||
val section : Lwt_log_core.section | ||
(** Use Lwt_log.Section.set_level in order to change the log level *) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,23 @@ | ||
(** Outputfilter: Rewrite some part of the output *) | ||
|
||
(** If you want to use this extension with Ocsigen Server's configuration file, | ||
+ have a look at the <<a_manual chapter="outputfilter"|manual page>>. | ||
+ If you are using Ocsigen Server as a library, use the interface described | ||
+ here. Each of these functions behaves exactly as its configuration file | ||
counterpart. | ||
+*) | ||
|
||
(** | ||
This module belongs to ocamlfind package | ||
[ocsigenserver.ext.outputfilter]. | ||
*) | ||
|
||
val run : | ||
mode: | ||
[ `Rewrite of Ocsigen_header.Name.t * Re.Pcre.regexp * string | ||
| `Add of Ocsigen_header.Name.t * string * bool option | ||
| `Code of Cohttp.Code.status ] | ||
-> unit | ||
-> Ocsigen_server.instruction | ||
(** [run ~mode ()] makes it possible to use this extension without | ||
configuration file. *) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters