http_test

package
v0.0.0-...-8f66fda Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const NoBody = ""

Variables

This section is empty.

Functions

func AddHeaders

func AddHeaders(req *http.Request, attrs ...string)

func Attr

func Attr(k, v string) string

String attribute

func AttrF

func AttrF(k string, f float64) string

Float to attribute

func AttrI

func AttrI(k string, i int) string

Int to attribute

func AttrJson

func AttrJson(k, v string) string

String attribute

func AttrP

func AttrP(k string, v *string) string

Pointer to string attribute

func AttrPF

func AttrPF(k string, f *float64) string

Float to attribute

func AttrPF32

func AttrPF32(k string, f *float32) string

Float to attribute

func AttrR

func AttrR(k, v string) string

Raw string to attribute

func AttrU

func AttrU(k string, u uint) string

Uint to attribute

func Obj

func Obj(attrs ...string) string

Object from processed attributes

func Path

func Path(parts ...string) string

func QAttr

func QAttr(k, v string) string

func QAttrI

func QAttrI(k string, i int) string

func QAttrP

func QAttrP(k string, v *string) string

func Query

func Query(attrs ...string) string

func Request

func Request(pathAndQueryParams string, body string) *http.Request

func Slice

func Slice(attrs ...string) string

Slice from processed attributes

Types

This section is empty.

Jump to

Keyboard shortcuts

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