requests

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package requests contains structure an helper methods for performing HTTP requests towards LocalEGA instance.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	DoRequest(method string, url string, body io.Reader, headers map[string]string, params map[string]string, username string, password string) (*http.Response, error)
}

Client is an interface providing DoRequest method for performing HTTP requests towards LocalEGA instance.

func NewClient

func NewClient(client *http.Client) Client

NewClient constructs Client instance, possibly accepting custom http.Client implementation.

Jump to

Keyboard shortcuts

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