Giter VIP home page Giter VIP logo

go-http's Introduction

go-http

In the previous time, I wrote raw HTTP request in a text and sent it to server by nc tool to test my API.
This hard-core style do help me to understand HTTP proto. But I think I could test API in a more effcient way.
One night I found a tool called httpie.
It's awesome and convenient. So I gonna make a new httpie with Golang. Only standard library, it's a good way to learn Golang for someone who new to Golang.

@auhtod: Mrbanana
@date: 2021-9-4
@licece: The MIT License

Usage

$ make clean
$ make
$ ./go-http httpbin.org/status/418

Generally, it looks like ./go-http [host:port]
If host is empty, like :8080, the host is assumed as localhost

Feature

  • In default the go-http use GET method;
  • Use ./go-http :8080 name:banana age:12 to add your request-headers;
  • Use ./go-http :8080 name=banana age=12 to send JSON data in POST method;
  • Use ./go-http :8080 name-banana age#12 to send FORM data in POST method;

go-http's People

Contributors

tomsawyer404 avatar

Watchers

James Cloos avatar  avatar

go-http's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.