httputil

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CodeDispose

func CodeDispose(body []byte, code int) ([]byte, error)

func CommonRequest

func CommonRequest(requestURL, httpMethod string, header, rawQuery map[string]string, postBody json.RawMessage) ([]byte, int, error)

func IsURL

func IsURL(u string) (url.URL, bool)

Types

type RespError

type RespError struct {
	Code    string      `json:"code,omitempty"`
	Message string      `json:"message,omitempty"`
	Detail  interface{} `json:"detail,omitempty"`
}

Jump to

Keyboard shortcuts

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