//
pkg.gl
Category
github.com/phpdragon/go-eureka-client
httpclent
package
0.0.0-20231101101145-d1cd99d2670f
Repository:
https://github.com/phpdragon/go-eureka-client.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
11
Dependents
1
Files
345 SLOC
#
Functions
AddRequestInterceptors
AddRequestInterceptors 添加请求拦截器.
Delete
Delete httpclent `DELETE` 请求.
Get
Get httpclent `GET` 请求.
Post
Post httpclent `POST` 请求.
Put
Put httpclent `PUT` 请求.
Request
Request 用于自定义请求方式,比如`HEAD`、`PATCH`、`OPTIONS`、`TRACE` client参数用于替换DefaultClient,如果为nil则会使用默认的.
#
Constants
ApplicationFormUrlencoded
No description provided by the author
ApplicationJSON
No description provided by the author
ContentType
No description provided by the author
#
Structs
FileForm
FileForm form参数和文件参数.
HttpClient
HttpClient 封装了http的参数等信息.
Result
Result http响应结果.
#
Type aliases
RequestInterceptor
RequestInterceptor 请求拦截器 返回不为nil,即有错误会终止后续执行.