# Functions
Delete delete 请求.
Get get 请求.
PatchFrom patch form 请求.
PatchJSON patch json 请求.
PostForm post form 请求.
PostJSON post json 请求.
PutForm put form 请求.
PutJSON put json 请求.
ToReplyErr 尝试将 err 转换为 ReplyErr.
WithHeader 设置http header,可以调用多次设置多对key-value.
WithLogger 设置logger以便打印关键日志.
WithMock 设置 mock 数据.
WithOnFailedAlarm 设置告警通知.
WithOnFailedRetry 设置失败重试.
WithTrace 设置trace信息.
WithTTL 本次http请求最长执行时间.
# Constants
DefaultRetryDelay 在重试前,延迟等待100毫秒.
DefaultRetryTimes 如果请求失败,最多重试3次.
DefaultTTL 一次http请求最长执行1分钟.
# Interfaces
No description provided by the author
ReplyErr 错误响应,当 resp.StatusCode != http.StatusOK 时用来包装返回的 httpcode 和 body 。.
# Type aliases
AlarmVerify Verify parse the body and verify that it is correct.
Mock 定义接口Mock数据.
Option 自定义设置http请求.
RetryVerify Verify parse the body and verify that it is correct.