httpT

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Enter

type Enter[T any] struct{}

func (*Enter[T]) Get

func (e *Enter[T]) Get(url string, headerEntity ...map[string]string) ([]byte, error)

func (*Enter[T]) Post

func (e *Enter[T]) Post(url string, reqEntity T, headerEntity ...map[string]string) ([]byte, error)

Post 这里的contenttype只支持application/json, reqEntity这个可以是任意类型

Jump to

Keyboard shortcuts

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