Skip to content

A Rust script to send requests in an async manner concurrently.

Notifications You must be signed in to change notification settings

arnav-deep/async-request-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

async-request-script

A Rust script to send requests in an async manner concurrently.

Uses

  • Testing async and multi-threading functionalites.
  • Load testing endpoints

Parameters

  • urls: Vector of URLs to hit. Can be the same URL. The size of this vector is the number of requests that this script will send.
  • CONCURRENT_REQUESTS: No of requests to send concurrently to the endpoint.
  • json_body: The JSON body for the post request.

Future Development

  • Elapsed time for each individual request.
  • Total Elapsed time.
  • Options to take input from cli params.
  • Make a library from this.
  • Add CLI param options for POST/GET/PATCH/UPDATE requests, adding JSON or body, URLs, adding the number of requests to be sent to the URLs, concurrent requests.

About

A Rust script to send requests in an async manner concurrently.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages