httprequest

package
v0.4.11 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Header http.Header
	// Query   map[string]string
	Body interface{}
	Json bool
}

type Response

type Response struct {
	StatusCode int
	Status     string
	Headers    http.Header
	Body       interface{}
}

func Request

func Request(method, url string, options Options) (*Response, error)

Jump to

Keyboard shortcuts

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