-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running Tiny_httpd.run_exn
as a background task.
#91
Comments
I think you might want to start a thread to run About the upload, I find this a bit surprising, there are some tests for that. At least with |
Using Regarding the |
ah yes, I don't think the directory module supports |
I was able to bolt-on a Lines 106 to 110 in b80c5f9
create function needs to include a way to create intermediate directories if they exist when creating a resource.
Do you want this to be a seperate issue or are you fine discussing it here? |
A separate issue, or even PR, would be welcome!
|
Hi, I am trying to programmically create and serve a local directory via http using this library as a way to unit test an http client. However when I call
Tiny_httpd.run_exn
dune runtest
freezes. Is there a way I can callrun_exn
as background task so that the program can continue to use the http server to perform unit tests? Here is what I wrote:If I use
http_of_dir <dir_name> -p 8080
in another shell session the client unit tests run just fine. Am I using this library's serving capabilities incorrectly? How can I achieve what i'm looking for?As an aside it appears POST/PUT methods don't actually create a resource under the directory even after the client (it uses
Ezcurl
internally) returns a 200/201 status code.The text was updated successfully, but these errors were encountered: