-
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: call register from run functions in extensions
to simplify the code written by users
- Loading branch information
Showing
18 changed files
with
82 additions
and
39 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
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,8 @@ | ||
val run : | ||
?credentials:bool | ||
?site:Ocsigen_server.Site.t | ||
-> ?credentials:bool | ||
-> ?max_age:int | ||
-> ?exposed_headers:string list | ||
-> ?methods:Cohttp.Code.meth list | ||
-> unit | ||
-> Ocsigen_server.Site.instruction | ||
-> unit |
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
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,8 @@ | ||
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 ] | ||
?site:Ocsigen_server.Site.t | ||
-> 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 | ||
-> unit | ||
-> Ocsigen_server.Site.instruction |
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
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
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,15 +1,15 @@ | ||
val section : Lwt_log_core.section | ||
(** use Lwt_log.Section.set_level in order to debug *) | ||
|
||
(** Use the following config key to set options | ||
for a statically linked executable without configuration file: *) | ||
|
||
val run : | ||
?dir:string | ||
?site:Ocsigen_server.Site.t | ||
-> ?dir:string | ||
-> ?regexp:string | ||
-> ?dest:string | ||
-> ?code:string | ||
-> ?cache:int | ||
-> ?root:string | ||
-> unit | ||
-> Ocsigen_server.Site.instruction | ||
-> unit | ||
(** Run static mod on a specific directory. | ||
Call this if you want to run Ocsigen Server 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