Skip to content

bubunyo/myhttp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

myhttp

myhttp fetches a url over the network and returns an md5 hash of the response gotten via the network call.

by Bubunyo Nyavor.

Dependencies

  • Go +1.31.1 - The golang toolchain needs to be installed to run this project successfuly. To install the, the golang toolchain go here.

Run Application

  1. Build application
go build -o myhttp
  1. Run application with url as arguments and option flags
./myhttp [-parallel 3] example.com example2.com

Notes

  • The parallel is an optional flag that sets the number of processes to run in parallel. It defaults to 10 if the flag is not provided.
  • The default value for maximum parallel processes is 30. ie. If the value set in parallel exceeds the maximum parallel process value, the maximum is used. You can reset this value by setting MAX_PROC in your environmental variables to a suitable value

Run Tests

go test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages