contenttype

package
v0.6.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnsupportedContentType = errors.New("unsupported mime type")

Functions

This section is empty.

Types

type Decoder

type Decoder interface {
	Decode(data []byte) (map[string]any, error)
}

func NewDecoder

func NewDecoder(contentType string) (Decoder, error)

type JSONDecoder

type JSONDecoder struct{}

func (JSONDecoder) Decode

func (JSONDecoder) Decode(rawData []byte) (map[string]any, error)

type WWWFormUrlencodedDecoder

type WWWFormUrlencodedDecoder struct{}

func (WWWFormUrlencodedDecoder) Decode

func (WWWFormUrlencodedDecoder) Decode(rawData []byte) (map[string]any, error)

Jump to

Keyboard shortcuts

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