utils

package
v0.0.0-...-f9256dd Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetJson

func GetJson(byte []byte, data any) error

func Jsonify

func Jsonify(data any) ([]byte, error)

marshall object to json

func NormalizePath

func NormalizePath(str string) string

normalize path for windows compability

func ParseBody

func ParseBody(f *proxy.Flow) (interface{}, error)

func UrlJoinPath

func UrlJoinPath(base string, path ...string) string

Types

type FormData

type FormData struct {
	Files  []*multipart.FileHeader
	Values map[string][]string
}

Jump to

Keyboard shortcuts

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