http

package
v0.0.0-...-d853fe5 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HTTP

func HTTP(ctx entity.Context, method, url string,
	request any, response any, params ...*HttpParam) (rspByte []byte, e error)

HTTP http远程调用

Types

type BasicAuth

type BasicAuth struct{ User, Passwd string }

type HttpHooker

type HttpHooker interface {
	Before(entity.Context, *http.Request) (After func(any, error) error)
}
var (
	Hooker HttpHooker
)

type HttpParam

type HttpParam struct {
	http.Header
	http.RoundTripper
	http.CookieJar
	*BasicAuth
}

Jump to

Keyboard shortcuts

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