-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
82 additions
and
74 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,8 +1,12 @@ | ||
(library | ||
(name tiny_httpd) | ||
(public_name tiny_httpd) | ||
(flags :standard -open Tiny_httpd_core) | ||
(libraries threads seq unix hmap | ||
(re_export tiny_httpd.core) | ||
(re_export tiny_httpd.html) | ||
(re_export tiny_httpd.unix))) | ||
(name tiny_httpd) | ||
(public_name tiny_httpd) | ||
(flags :standard -open Tiny_httpd_core) | ||
(libraries | ||
threads | ||
seq | ||
unix | ||
hmap | ||
(re_export tiny_httpd.core) | ||
(re_export tiny_httpd.html) | ||
(re_export tiny_httpd.unix))) |
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,13 +1,14 @@ | ||
|
||
|
||
(library | ||
(name tiny_httpd_prometheus) | ||
(public_name tiny_httpd.prometheus) | ||
(synopsis "Metrics using prometheus") | ||
(private_modules common_p_ time_) | ||
(flags :standard -open Tiny_httpd_core) | ||
(libraries | ||
(re_export tiny_httpd.core) unix | ||
(select time_.ml from | ||
(re_export tiny_httpd.core) | ||
unix | ||
(select | ||
time_.ml | ||
from | ||
(mtime mtime.clock.os -> time_.mtime.ml) | ||
(-> time_.default.ml)))) |
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,15 @@ | ||
|
||
(library | ||
(name tiny_httpd_unix) | ||
(public_name tiny_httpd.unix) | ||
(synopsis "Backend based on Unix and blocking IOs for Tiny_httpd") | ||
(flags :standard -open Tiny_httpd_core) | ||
(private_modules mime_) | ||
(libraries tiny_httpd.core tiny_httpd.html unix | ||
(select mime_.ml from | ||
(magic-mime -> mime_.magic.ml) | ||
( -> mime_.dummy.ml)) | ||
)) | ||
(name tiny_httpd_unix) | ||
(public_name tiny_httpd.unix) | ||
(synopsis "Backend based on Unix and blocking IOs for Tiny_httpd") | ||
(flags :standard -open Tiny_httpd_core) | ||
(private_modules mime_) | ||
(libraries | ||
tiny_httpd.core | ||
tiny_httpd.html | ||
unix | ||
(select | ||
mime_.ml | ||
from | ||
(magic-mime -> mime_.magic.ml) | ||
(-> mime_.dummy.ml)))) |
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,2 +1 @@ | ||
|
||
val mime_of_path : string -> string | ||
val mime_of_path : string -> string |
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,12 +1,13 @@ | ||
|
||
(library | ||
(name tiny_httpd_ws) | ||
(public_name tiny_httpd.ws) | ||
(synopsis "Websockets for tiny_httpd") | ||
(private_modules common_ws_ utils_) | ||
(flags :standard -open Tiny_httpd_core) | ||
(foreign_stubs | ||
(language c) | ||
(names tiny_httpd_ws_stubs) | ||
(flags :standard -std=c99 -fPIC -O2)) | ||
(libraries (re_export tiny_httpd.core) threads)) | ||
(name tiny_httpd_ws) | ||
(public_name tiny_httpd.ws) | ||
(synopsis "Websockets for tiny_httpd") | ||
(private_modules common_ws_ utils_) | ||
(flags :standard -open Tiny_httpd_core) | ||
(foreign_stubs | ||
(language c) | ||
(names tiny_httpd_ws_stubs) | ||
(flags :standard -std=c99 -fPIC -O2)) | ||
(libraries | ||
(re_export tiny_httpd.core) | ||
threads)) |
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,4 +1,3 @@ | ||
|
||
(test | ||
(name t_prom) | ||
(libraries tiny_httpd.prometheus)) | ||
(name t_prom) | ||
(libraries tiny_httpd.prometheus)) |
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,5 +1,4 @@ | ||
|
||
(tests | ||
(names t_util t_buf t_server t_io) | ||
(package tiny_httpd) | ||
(libraries tiny_httpd.core qcheck-core qcheck-core.runner test_util)) | ||
(names t_util t_buf t_server t_io) | ||
(package tiny_httpd) | ||
(libraries tiny_httpd.core qcheck-core qcheck-core.runner test_util)) |
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,5 +1,4 @@ | ||
|
||
(library | ||
(name test_util) | ||
(modules test_util) | ||
(libraries logs qcheck-core qcheck-core.runner)) | ||
(name test_util) | ||
(modules test_util) | ||
(libraries logs qcheck-core qcheck-core.runner)) |
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,6 +1,5 @@ | ||
|
||
(tests | ||
(names t_ws t_ws_q) | ||
(package tiny_httpd) | ||
(deps masked.data) | ||
(libraries tiny_httpd.ws qcheck-core qcheck-core.runner test_util)) | ||
(names t_ws t_ws_q) | ||
(package tiny_httpd) | ||
(deps masked.data) | ||
(libraries tiny_httpd.ws qcheck-core qcheck-core.runner test_util)) |