httpClientService

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSON

func JSON(client *http.Client, url string, method Method, reqData interface{}, resData interface{}, trace ...tracehandler.Trace) (err error)

JSON : 自定義 Client的方式JSON Requset/Respone

func JSONRequest

func JSONRequest(client *http.Client, url string, method string, reqData interface{}, resData interface{}, trace ...tracehandler.Trace) (err error)

Types

type Method

type Method string

Method :

const (
	// POST :
	POST Method = "POST"
	//GET :
	GET Method = "GET"
	// PUT :
	PUT Method = "PUT"
	// DELETE :
	DELETE Method = "DELETE"
	// PATCH :
	PATCH Method = "PATCH"
)

Jump to

Keyboard shortcuts

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