httputils

package
v1.3.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Method

Method returns the authorizationmethod.AuthorizationMethod corresponding with the parameter value.

Types

type AuthorizationData

type AuthorizationData struct {
	Method authorizationmethod.AuthorizationMethod
	Value  string
}

AuthorizationData holds all information necessary to authorize with HTTP.

func (AuthorizationData) Equals

func (d AuthorizationData) Equals(other AuthorizationData) bool

func (*AuthorizationData) ToHeaderValue

func (d *AuthorizationData) ToHeaderValue() (string, error)

ToHeaderValue retrieves the value of the authorization header from AuthorizationData.

type Endpoint

type Endpoint struct {
	Url  string
	Auth AuthorizationData
}

Endpoint is an endpoint with authorization data.

func (Endpoint) Equals

func (e Endpoint) Equals(other Endpoint) bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL