Skip to content

zupzup/rust-reactor-executor-example

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 

rust-reactor-executor-example

Start with cargo run. Then, you can send HTTP requests to the server at http://127.0.0.1:8000.

Try to send many requests and look at the log of the server, to see how requests are handled concurrently, although we're only executing requests on one thread. The reactor runs in it's own I/O polling thread.

For example, you can send a file:

while true; do curl --location --request POST 'http://localhost:8000/upload' \--form 'file=@/home/somewhere/some_image.png' -w ' Total: %{time_total}' && echo '\n'; done;

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages