Documentation ¶
Index ¶
- Constants
- func AddFormValuesIntoURL(rawURL string, form url.Values) (string, error)
- func Delete(url string, form httpURL.Values, options ...Option) (body []byte, header http.Header, statusCode int, err error)
- func Get(url string, form httpURL.Values, options ...Option) (body []byte, header http.Header, statusCode int, err error)
- func PatchFromBody(url string, form httpURL.Values, options ...Option) (body []byte, header http.Header, statusCode int, err error)
- func PatchJSONBody(url string, raw json.RawMessage, options ...Option) (body []byte, header http.Header, statusCode int, err error)
- func PatchMultipartFile(url string, payload [][]byte, options ...Option) (body []byte, header http.Header, statusCode int, err error)
- func PatchNoBody(url string, form httpURL.Values, options ...Option) (body []byte, header http.Header, statusCode int, err error)
- func PostFormBody(url string, form httpURL.Values, options ...Option) (body []byte, header http.Header, statusCode int, err error)
- func PostJSONBody(url string, raw json.RawMessage, options ...Option) (body []byte, header http.Header, statusCode int, err error)
- func PostMultipartFile(url string, payload [][]byte, options ...Option) (body []byte, header http.Header, statusCode int, err error)
- func PostNoBody(url string, form httpURL.Values, options ...Option) (body []byte, header http.Header, statusCode int, err error)
- func PutFormBody(url string, form httpURL.Values, options ...Option) (body []byte, header http.Header, statusCode int, err error)
- func PutJSONBody(url string, raw json.RawMessage, options ...Option) (body []byte, header http.Header, statusCode int, err error)
- func PutMultipartFile(url string, payload [][]byte, options ...Option) (body []byte, header http.Header, statusCode int, err error)
- func PutNoBody(url string, form httpURL.Values, options ...Option) (body []byte, header http.Header, statusCode int, err error)
- func QueryUnescape(uri string) string
- type Option
- func WithContext(ctx context.Context) Option
- func WithDesc(desc string) Option
- func WithHeader(key, value string) Option
- func WithJournalID(id string) Option
- func WithNonDurableLogger(logger *zap.Logger) Option
- func WithPrintJournal(logger *zap.Logger, desc string) Option
- func WithQueryForm(form url.Values) Option
- func WithRetryDelay(retryDelay time.Duration) Option
- func WithRetryTimes(retryTimes int) Option
- func WithTTL(ttl time.Duration) Option
- func WithVerifyResponseHandler(handler VerifyResponseHandler) Option
- type VerifyResponseHandler
Constants ¶
View Source
const ( DefaultTTL = time.Second * 10 DefaultRetryTimes = 3 DefaultRetryDelay = time.Millisecond * 100 )
Variables ¶
This section is empty.
Functions ¶
func AddFormValuesIntoURL ¶ added in v1.5.10
func PatchFromBody ¶ added in v1.1.16
func PatchJSONBody ¶ added in v1.1.16
func PatchMultipartFile ¶ added in v1.4.0
func PatchNoBody ¶ added in v1.1.16
func PostFormBody ¶ added in v1.1.16
func PostJSONBody ¶ added in v1.1.16
func PostMultipartFile ¶ added in v1.4.0
func PostNoBody ¶ added in v1.1.16
func PutFormBody ¶ added in v1.1.16
func PutJSONBody ¶ added in v1.1.16
func PutMultipartFile ¶ added in v1.4.0
func QueryUnescape ¶
Types ¶
type Option ¶
type Option func(*option)
func WithContext ¶
func WithHeader ¶
func WithJournalID ¶ added in v1.5.1
WithJournalID set an unique journal id
func WithNonDurableLogger ¶ added in v1.5.10
WithNonDurableLogger record log in external storage
func WithQueryForm ¶ added in v1.1.16
WithQueryForm add some queryform values(only works for with body)
func WithRetryDelay ¶
func WithRetryTimes ¶
func WithVerifyResponseHandler ¶ added in v1.5.10
func WithVerifyResponseHandler(handler VerifyResponseHandler) Option
type VerifyResponseHandler ¶ added in v1.5.10
Click to show internal directories.
Click to hide internal directories.