httpclient

package
v0.0.0-...-7d75d8f Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPDoer

type HTTPDoer interface {
	HTTPDo() (*http.Response, error)
}

type HTTPParam

type HTTPParam struct {
	// http url
	URL string `json:"url"`
	// http method, available method: get, post, put, patch, delete
	Method string `json:"method"`
	// http header
	Header map[string]string `json:"header"`
	// http body
	Body string `json:"body"`
	// http timeout, in miliseconds
	Timeout int `json:"timeout"`
}

func (*HTTPParam) HTTPDo

func (httpParam *HTTPParam) HTTPDo() (*http.Response, error)

Jump to

Keyboard shortcuts

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