• Stars
    star
    10
  • Rank 1,807,489 (Top 36 %)
  • Language
    Go
  • License
    MIT License
  • Created over 7 years ago
  • Updated over 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

request with digest authentication in golang

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

More Repositories

1

homebrew-sfmono-square

SFMono Square - patched font: SFMono + Migu 1M + Nerd Fonts
Python
171
star
2

dotfiles

my dotfiles
Lua
79
star
3

vim-auto-cursorline

Show / hide cursorline automatically
Vim Script
34
star
4

lightline-delphinus

Yet another theme for lightline
Vim Script
33
star
5

skkeleton_indicator.nvim

Yet another indicator for Skkeleton.
Lua
33
star
6

vim-firestore

A syntax / code completion plugin for Firestore Security Rules.
Vim Script
31
star
7

artify.nvim

Yet another implementation of sainnhe/artify.vim
Lua
31
star
8

emcl.nvim

Make the cursor move like Emacs in the command line of Neovim
Lua
20
star
9

cellwidths.nvim

Lua
19
star
10

ddc-treesitter

A source for ddc.vim to gather candidates from nvim-treesitter
TypeScript
18
star
11

agrp.nvim

Lua
18
star
12

auto-cursorline.nvim

Show / hide cursorline automatically
Lua
16
star
13

telescope-memo.nvim

Lua
13
star
14

dwm.nvim

Lua
12
star
15

ddc-source-tmux

A source for ddc.vim to gather candidates from tmux panes
TypeScript
10
star
16

cmp-ctags

A source for nvim-cmp to gather candidates from Universal Ctags
Lua
10
star
17

ddc-ctags

A source for ddc.vim to gather candidates from Universal Ctags
TypeScript
9
star
18

characterize.nvim

Lua
7
star
19

telescope-node-modules.nvim

Lua
6
star
20

mappy.nvim

A tiny utility to call any *map commands.
Lua
6
star
21

nekokak.nvim

Blazingly fast implementation for NEKOKAK
Lua
6
star
22

homebrew-macvim-kaoriya

Ruby
6
star
23

telescope-ghq.nvim

An extension of telescope.nvim for operating with ghq
Lua
4
star
24

vim-denite-memo

The denite source for mattn/memo
Python
4
star
25

telescope-z.nvim

Lua
4
star
26

gin-assets-sample

A complete example to create a single binary with the gin-gonic/gin Web Server with HTML templates
Go
3
star
27

lastfm

Listing tracks from Last.fm with jQuery
JavaScript
3
star
28

vim-denite-window

Python
3
star
29

rtr.nvim

Simple & small implementation for chdir'ing accordingly
Lua
3
star
30

eaw.nvim

Yet another plugin for East Asian Width characters.
Lua
2
star
31

lazy_require.nvim

A tiny module to define function to load another module lazily.
Lua
2
star
32

ddc-shell-history

Shell history completion for ddc.vim
TypeScript
2
star
33

f_meta.nvim

Lua
2
star
34

random-string

Library to make passwords without misleading letters
Go
2
star
35

iterm2-battery-status

A component to show battery status for iTerm2's status bar feature
Python
2
star
36

qfheight.nvim

Resize quickfix window automatically
Lua
2
star
37

git-flow-test

1
star
38

macedonia

Go
1
star
39

go-sshkeys

Go
1
star
40

cmp-ghq

nvim-cmp completion source for ghq
Lua
1
star
41

SourceCodeCleaner

MovableType plugin fork from http://www.tinybeans.net/blog/download/mt-plugin/source-code-cleaner.html
Perl
1
star
42

vim-denite-scriptnames

Denite source for :scriptnames
Python
1
star
43

keyRemap4MacBookCustom

1
star
44

vim-denite-node-modules

Denite source for node_modules
Python
1
star
45

try_git

1
star
46

neocomplete-json-schema

Vim Script
1
star
47

nord-nvim

Lua
1
star
48

unite-converter-erase-diff-buffer

Vim Script
1
star
49

screen

GNU screen fork from http://git.savannah.gnu.org/cgit/screen.git
C
1
star
50

vim-pastefire

Vim Script
1
star
51

sunset

Automatically set background on local sunrise/sunset time.
Vim Script
1
star
52

p5-WebService-Pastefire

Perl
1
star
53

deoplete-ghq

Python
1
star
54

mkVideoLink

Perl
1
star
55

gosshauth

A tiny hook tool for bash/zsh to re-authenticate with ssh-agent.
Go
1
star
56

MooseX--Daemonize-Sample

sample script with MooseX::Daemonize
1
star
57

dynupdate

Dyn.com DNS update daemon
Perl
1
star
58

objc

Objective-C
1
star
59

PushStateTest

JavaScript
1
star
60

seeip

get client IP address
Perl
1
star
61

keyhac_config

Python
1
star
62

vim-charcount

1
star
63

vim-denite-nb

Python
1
star