httputil

package module
v0.0.0-...-fc981be Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2021 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExcludeSensitiveHeader

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

ExcludeSensitiveHeader exclude sensitive header. Currently, sensitive header only Authorization

func ExcludeSensitiveRequestBody

func ExcludeSensitiveRequestBody(body *string)

func IsClientError

func IsClientError(code int) bool

func IsRedirection

func IsRedirection(code int) bool

func IsServerError

func IsServerError(code int) bool

func IsSuccess

func IsSuccess(code int) bool

func KitabisaHeader

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