rest

package module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2023 License: MIT Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
}

func (*Client) Delete

func (c *Client) Delete(url string, headers map[string]string) (*http.Response, error)

func (*Client) Get

func (c *Client) Get(url string, headers map[string]string) (*http.Response, error)

func (*Client) Post

func (c *Client) Post(url string, headers map[string]string, body string) (*http.Response, error)

func (*Client) PostForm

func (c *Client) PostForm(url string, headers map[string]string, parameters map[string]string) (*http.Response, error)

func (*Client) PostMultipart

func (c *Client) PostMultipart(uri string, headers map[string]string, parameters map[string]string, formFiles []Multipart) (*http.Response, error)

func (*Client) Put

func (c *Client) Put(url string, headers map[string]string, body string) (*http.Response, error)

type Multipart

type Multipart struct {
	FieldName string
	FileName  string
	FilePath  string
}

Jump to

Keyboard shortcuts

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