/goha

Basic and Digest HTTP Authentication for Go http client

Primary LanguageGoApache License 2.0Apache-2.0

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)
}