utils

package
v0.0.0-...-b486baa Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StrLen

func StrLen(s string) int

Types

type HttpClient

type HttpClient struct {
	// contains filtered or unexported fields
}

func NewHttpClient

func NewHttpClient(n, timeout int) HttpClient

func (*HttpClient) ForwardTo

func (hc *HttpClient) ForwardTo(req *http.Request, jsonResp interface{}) (statusCode int, err error)

func (*HttpClient) SendAndHandle

func (hc *HttpClient) SendAndHandle(req *http.Request, handle func(http.Header, io.Reader) error) error

Jump to

Keyboard shortcuts

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