httputils

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 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

Equals compares two authorization data objects for equality.

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

Equals compares two endpoints for equality.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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