Popularity
2.0
Declining
Activity
0.0
Stable
10
1
9

Description

go-digest-request is a client to request any *http.Request with Digest Authentication.

Programming language: Go
License: MIT License
Tags: Utilities     Networking     Tools     Client     Authentication    
Latest version: v1.0.1

go-digest-request alternatives and similar packages

Based on the "Networking" category.
Alternatively, view go-digest-request alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of go-digest-request or a related project?

Add another 'Networking' Package

README

go-digest-request - request with digest authentication in golang

CircleCI Coverage Status

Usage

  • When creating context, use digestRequest.ContextWithClient() for appengine.urlfetch in Google App Engine.
import (
  "fmt"
  "io/ioutil"
  "net/http"

  "github.com/delphinus/go-digest-request"
  "golang.org/x/net/context"
)

func main() {
  ctx := context.Background()
  r := digestRequest.New(ctx, "john", "hello") // username & password

  req, _ := http.NewRequest("GET", "http://example.com", nil)
  resp, _ := r.Do(req)
  defer resp.Body.Close()

  b, _ := ioutil.ReadAll(resp.Body)

  fmt.Println(string(b))
}