shimgo

package
v1.19.1-go1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Net_Http_MethodGet     = "GET"
	Net_Http_MethodHead    = "HEAD"
	Net_Http_MethodPost    = "POST"
	Net_Http_MethodPut     = "PUT"
	Net_Http_MethodPatch   = "PATCH" // RFC 5789
	Net_Http_MethodDelete  = "DELETE"
	Net_Http_MethodConnect = "CONNECT"
	Net_Http_MethodOptions = "OPTIONS"
	Net_Http_MethodTrace   = "TRACE"
)

Variables

This section is empty.

Functions

func Bytes_LastIndexByte

func Bytes_LastIndexByte(s []byte, c byte) int

func Net_Http_BasicAuth

func Net_Http_BasicAuth(r *http.Request) (username, password string, ok bool)

func Net_Http_Server_ServeTLS

func Net_Http_Server_ServeTLS(srv *http.Server, l net.Listener, certFile, keyFile string) error

func Net_Url_PathEscape

func Net_Url_PathEscape(s string) string

func Net_Url_PathUnescape

func Net_Url_PathUnescape(s string) (string, error)

PathUnescape does the inverse transformation of PathEscape, converting each 3-byte encoded substring of the form "%AB" into the hex-decoded byte 0xAB. It returns an error if any % is not followed by two hexadecimal digits.

PathUnescape is identical to QueryUnescape except that it does not unescape '+' to ' ' (space).

func Os_LookupEnv

func Os_LookupEnv(key string) (string, bool)

func Strings_LastIndexByte

func Strings_LastIndexByte(s string, c byte) int

func Time_AppendFormat

func Time_AppendFormat(t time.Time, b []byte, layout string) []byte

Types

type Net_Url_EscapeError

type Net_Url_EscapeError string

func (Net_Url_EscapeError) Error

func (e Net_Url_EscapeError) Error() string

type Net_Url_InvalidHostError

type Net_Url_InvalidHostError string

func (Net_Url_InvalidHostError) Error

func (e Net_Url_InvalidHostError) Error() string

Jump to

Keyboard shortcuts

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