Skip to content

amirrmonfared/myhttp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

myhttp

myhttp is a command-line tool written in Go for making HTTP requests to multiple URLs and printing the address of each request along with the MD5 hash of the response. The tool is designed to perform requests in parallel to optimize processing time.

Installation

Before using myhttp, ensure that you have Go installed and properly configured on your computer. For Go installation instructions, please refer to the official Go installation guide.

Usage

To use myhttp, run the following command in your terminal:

go run ./cmd/myhttp [flags] [URL1] [URL2] ... [URLN]

The following flag is available:

  -parallel int
        number of parallel requests (default 10)

Examples

go run ./cmd/myhttp -parallel 5 http://www.google.com http://www.yahoo.com http://www.bing.com
go run ./cmd/myhttp -parallel 2 http://www.google.com yahoo.com www.bing.com

Testing

To run the unit tests, run the following command in your terminal:

go test ./...

Dependencies

MyHTTP does not have any external dependencies beyond the Go standard library. All the required functionality is implemented using the built-in packages provided by Go.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages