gentleman.v2: gopkg.in/h2non/gentleman.v2/plugins/auth Index | Files

package auth

import "gopkg.in/h2non/gentleman.v2/plugins/auth"

Index

Package Files

auth.go

func Basic Uses

func Basic(username, password string) p.Plugin

Basic defines an authorization basic header in the outgoing request

func Bearer Uses

func Bearer(token string) p.Plugin

Bearer defines an authorization bearer token header in the outgoing request

func Custom Uses

func Custom(value string) p.Plugin

Custom defines a custom authorization header field in the outgoing request

Package auth imports 2 packages (graph) and is imported by 1 packages. Updated 2020-02-19. Refresh now. Tools for package owners.