# README
CClient
Fixes TLS and stuff.
Example
package main
import (
"log"
tls "github.com/tfyl/utls"
"github.com/tfyl/cclient"
)
func main() {
client, err := cclient.NewClient(tls.HelloChrome_Auto,"",true,6)
if err != nil {
log.Fatal(err)
}
resp, err := client.Get("https://www.google.com/")
if err != nil {
log.Fatal(err)
}
resp.Body.Close()
log.Println(resp.Status)
}
# Functions
MakeProxy makes proxy struct must be in ip:port:user:pass or ip:port can use proxy.Url().String() to use in client.
NewClient creates new http client with cookie jar.
NewPostFormData creates new post request using string map TODO: make it ordered.
NewPostJson creates new post request and marshals the data as a JSON.
NewPostString creates new post request and adds string as payload.
ParseJson closes body and decodes resp body to pointer.
# Structs
Users of context.WithValue should define their own types for keys.
# Interfaces
No description provided by the author