requests

package
v0.0.0-...-bc034c2 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Auth

func Auth(path, user, pass string) error

func AuthenticatedDelete

func AuthenticatedDelete(path string) error

func AuthenticatedGet

func AuthenticatedGet(path string) ([]byte, error)

func AuthenticatedPost

func AuthenticatedPost(path string, body io.Reader) ([]byte, error)

func AuthenticatedPostWithHeaders

func AuthenticatedPostWithHeaders(path string, body io.Reader, headers map[string]string) ([]byte, error)

func AuthenticatedPut

func AuthenticatedPut(path string, body io.Reader) ([]byte, error)

func Post

func Post(path string, body io.Reader) ([]byte, error)

Types

type Credentials

type Credentials struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

Jump to

Keyboard shortcuts

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