request

package
v0.10.5 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	BaseURL string
	Home    string
	// contains filtered or unexported fields
}

Client represents a http Client

func (*Client) GetReq

func (client *Client) GetReq(url string, jsonStr []byte, token bool) ([]byte, *http.Response, error)

GetReq performs a http GET request on a resource

func (*Client) PostReq

func (client *Client) PostReq(url string, jsonStr []byte, token bool, method string) ([]byte, *http.Response, error)

PostReq performs a http POST request on a resource

Jump to

Keyboard shortcuts

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