requests

package module
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: May 4, 2023 License: MIT Imports: 6 Imported by: 1

README

requests

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Url     string
	Method  string
	Params  map[string]string
	Headers map[string]string
	Body    map[string]interface{}
}

type Response

type Response struct {
	RESPONSE *http.Response
	ERR      error
}

func Get

func Get(config Config) Response

func Post

func Post(config Config) Response

func Send

func Send(config Config) (R Response)

func (*Response) JSON

func (R *Response) JSON() gjson.Result

func (*Response) RAW

func (R *Response) RAW() []byte

Jump to

Keyboard shortcuts

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