modulepackage
0.0.0-20240709101456-65afdfcb3dda
Repository: https://github.com/adam-0001/requests.git
Documentation: pkg.go.dev
# 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)
}
# Functions
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Note: Headers from this function will not maintain order.
Create a new client with the same settiungs and cookiejar as the existing client.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
Set to 0 for no warning logs.