Skip to content
/ chttp Public

Cooked HTTP — a standard golang HTTP Client with user-defined cookies, and a customised transport.

License

Notifications You must be signed in to change notification settings

rusq/chttp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chttp

Go Reference

Cooked HTTP — a standard golang HTTP Client wrapper that adds a cookie jar with user-defined cookies, and a customised transport.

Simple usage:

import "github.com/rusq/chttp"

func getSomething() error {
	cookies := readFromFile()
	cl := chttp.New("https://slack.com", cookies)

	resp, err := cl.Get("url") // will execute with the cookies
	if err != nil {
		return err
	}
	// do something with resp
	return nil
}

See package documentation if you'd like to read more.

About

Cooked HTTP — a standard golang HTTP Client with user-defined cookies, and a customised transport.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages