zurl

Crates.iozurl
lib.rszurl
version0.1.4
created_at2025-04-27 11:40:33.225034+00
updated_at2025-04-29 19:23:33.397209+00
descriptionBecause simplicity matters, even in APIs
homepage
repositoryhttps://github.com/Muhammad-Owais-Warsi/zurl
max_upload_size
id1651033
size54,275
Muhammad Owais Warsi (Muhammad-Owais-Warsi)

documentation

README

Zurl

Zurl is a simple, lightweight, and fast alternative to curl, built in Rust.

Installation

cargo install zurl

Flags

Flags Description
-H or --header To add custom headers to the request
-j or --json To send JSON data
-q or --query To add query parameters
-h or --help To list down all commands

Basic Usage

Once installed, you can use zurl from the command line to make HTTP requests.

zurl <METHOD> <URL>

GET Request

zurl GET <URL>

Add json to your request

zurl POST <URL> --json '{"key":"value"}'

Add custom headers to your request

zurl GET <URL> -H "Authorization: Bearer YOUR_TOKEN" -H "Custom-Header: Value"

Add query parameters to your request

zurl GET https://api.example.com/search -q "key1=value1&key2=value2"

Sending request to your localhost

You can either write the complete url http://loclahost:<port>/<path> or can use the below short-hand.

zurl GET :<PORT>/<PATH>

Contributing

We welcome contributions to Zurl! If you'd like to improve the tool, please feel free to fork the project, submit an issue, or create a pull request.

Steps to Contribute:

  1. Fork the repository.

  2. Clone your fork.

  3. Make your changes and commit them.

  4. Push your changes.

  5. Create a pull request.

Commit count: 16

cargo fmt