Categorygithub.com/adam-0001/requests
repositorypackage
0.0.0-20240709101456-65afdfcb3dda
Repository: https://github.com/adam-0001/requests.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# README

Requests

Requests is a simple http client inspired by python requests. Built on top of cclient and fhttp, requests maintains simplicity while enabling features such as HTTP/2, ordered headers, and much more.


Quickstart

Get

package main

import (
	"fmt"

	"github.com/adam-0001/requests"
)

func main() {
	//Headers will follow specified order
	headers := []map[string]string{
		{"hello": "world"},
	}
	resp, err := requests.Get("https://google.com", headers, nil)
	if err != nil {
		panic(err)
	}
	fmt.Println(resp.Text)
}