-
Notifications
You must be signed in to change notification settings - Fork 44
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
Antonio Nuno Monteiro
committed
Dec 10, 2018
1 parent
ea1b913
commit 82388f3
Showing
22 changed files
with
97 additions
and
83 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
(library | ||
(name httpaf_async) | ||
(public_name httpaf-async) | ||
(wrapped false) | ||
(libraries | ||
async core angstrom-async faraday-async httpaf) | ||
(flags (:standard -safe-string))) |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
(executable | ||
(libraries httpaf httpaf-async async core) | ||
(modules wrk_async_benchmark) | ||
(name wrk_async_benchmark) | ||
(flags (:standard -w -9))) | ||
|
||
(executable | ||
(name wrk_lwt_benchmark) | ||
(modules Wrk_lwt_benchmark) | ||
(libraries httpaf httpaf-lwt lwt.unix)) |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
(lang dune 1.5) |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
(executables | ||
(libraries httpaf httpaf-async async core) | ||
(modules async_echo_post async_get async_post) | ||
(names async_echo_post async_get async_post) | ||
(flags (:standard -w -9))) |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
(executables | ||
(names lwt_get lwt_post lwt_echo_server) | ||
(libraries httpaf httpaf-lwt lwt lwt.unix)) |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
(* The function that results from [create_connection_handler] should be passed | ||
to [Lwt_io.establish_server_with_client_socket]. For an example, see | ||
[examples/lwt_echo_server.ml]. *) | ||
module Server : sig | ||
type request_handler = | ||
Lwt_unix.file_descr Httpaf.Server_connection.request_handler | ||
|
||
val create_connection_handler | ||
: ?config : Httpaf.Server_connection.Config.t | ||
-> request_handler : (Unix.sockaddr -> request_handler) | ||
-> error_handler : (Unix.sockaddr -> Httpaf.Server_connection.error_handler) | ||
-> (Unix.sockaddr -> Lwt_unix.file_descr -> unit Lwt.t) | ||
end | ||
|
||
(* For an example, see [examples/lwt_get.ml]. *) | ||
module Client : sig | ||
val request | ||
: Lwt_unix.file_descr | ||
-> Httpaf.Request.t | ||
-> error_handler : Httpaf.Client_connection.error_handler | ||
-> response_handler : Httpaf.Client_connection.response_handler | ||
-> [`write] Httpaf.Body.t | ||
end |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
(library | ||
(name httpaf) | ||
(public_name httpaf) | ||
(libraries | ||
angstrom faraday bigstringaf result) | ||
(flags (:standard -safe-string))) |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
(executables | ||
(libraries bigstringaf httpaf alcotest) | ||
(modules test_httpaf test_httpaf_server test_httpaf_client simulator) | ||
(names test_httpaf test_httpaf_server test_httpaf_client)) | ||
|
||
(alias | ||
(name runtest) | ||
(package httpaf) | ||
(deps test_httpaf.exe) | ||
(action (run %{deps}))) | ||
|
||
(alias | ||
(name runtest) | ||
(package httpaf) | ||
(deps test_httpaf_server.exe) | ||
(action (run %{deps}))) | ||
|
||
(alias | ||
(name runtest) | ||
(package httpaf) | ||
(deps test_httpaf_client.exe) | ||
(action (run %{deps}))) |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
(library | ||
(name httpaf_lwt) | ||
(public_name httpaf-lwt) | ||
(libraries faraday-lwt-unix httpaf lwt.unix) | ||
(flags (:standard -safe-string))) |
This file was deleted.
Oops, something went wrong.