Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 399 Bytes

README.md

File metadata and controls

32 lines (22 loc) · 399 Bytes

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