httputil

package
v2.31.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExcludeSensitiveHeader added in v2.7.0

func ExcludeSensitiveHeader(header http.Header) (h http.Header)

ExcludeSensitiveHeader exclude sensitive header. Currently, sensitive header only Authorization

func ExcludeSensitiveRequestBody added in v2.8.4

func ExcludeSensitiveRequestBody(body *string)

func IsClientError added in v2.10.0

func IsClientError(code int) bool

func IsRedirection added in v2.10.0

func IsRedirection(code int) bool

func IsServerError added in v2.10.0

func IsServerError(code int) bool

func IsSuccess added in v2.10.0

func IsSuccess(code int) bool

func KitabisaHeader added in v2.9.5

func KitabisaHeader(req *http.Request, clientName, clientVersion, requestID string) *http.Request

func ReadRequestBody

func ReadRequestBody(req *http.Request) (bodyString string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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