Skip to content

FeNoMeNa/goha

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

goha

A simple HTTP client supporting Basic and Digest access authentication.

Installation

go get github.com/FeNoMeNa/goha

Quick Start

package main

import (
	"fmt"

	"github.com/FeNoMeNa/goha"
)

func main() {
	c := goha.NewClient("username", "password")

	resp, err := c.Get("http://localhost:8080/")

	if err != nil {
		return
	}

	fmt.Println(resp.StatusCode)
}

About

Basic and Digest HTTP Authentication for Go http client

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages