httpclientutil

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CombineHostAndPath

func CombineHostAndPath(host string, path string) string

func DoJson

func DoJson(r *httpclient.Request, o interface{}) error

func GetHost

func GetHost(rawurl string) string

func GetPath

func GetPath(rawurl string) string

func GetPort

func GetPort(rawurl string) int

func HasSchema

func HasSchema(rawurl string) bool

func RmProto

func RmProto(url string) string

func WrapHttp

func WrapHttp(addr string) string

func WrapHttps

func WrapHttps(addr string) string

func WrapProto

func WrapProto(addr string) string

Types

type RespForRead

type RespForRead struct {
	Success bool                      `json:"success"`
	Data    json.RawMessage           `json:"data,omitempty"`
	Err     *apistructs.ErrorResponse `json:"err,omitempty"`
}

Jump to

Keyboard shortcuts

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