urlencoded

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2022 License: LGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DataType = "data"
)
View Source
const (
	MIME_URL_ENCODED = "application/x-www-form-urlencoded" // Accept or Content-Type used in Consumes() and/or Produces()
)

Variables

This section is empty.

Functions

func Marshal

func Marshal(in interface{}) ([]byte, error)

func NewEntityAccessor

func NewEntityAccessor() restful.EntityReaderWriter

NewEntityAccessorMPack returns a new EntityReaderWriter for accessing MessagePack content. This package is not initialized with such an accessor using the MIME_URL_ENCODED contentType.

func RouteBuilderReads

func RouteBuilderReads(b *restful.RouteBuilder, v reflect.Value) error

func Unmarshal

func Unmarshal(data []byte, in interface{}) error

Unmarshal decodes the url encoded data and stores the result in the value pointed to by in.

Types

type Decoder

type Decoder struct {
	// contains filtered or unexported fields
}

func NewDecoder

func NewDecoder(r io.Reader) *Decoder

func (*Decoder) Decode

func (p *Decoder) Decode(dst interface{}) error

func (*Decoder) Form

func (p *Decoder) Form(form url.Values) *Decoder

type Encoder

type Encoder struct {
	// contains filtered or unexported fields
}

func NewEncoder

func NewEncoder(w io.Writer) *Encoder

func (*Encoder) Encode

func (p *Encoder) Encode(src interface{}) error

Jump to

Keyboard shortcuts

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