contenttype

package
v0.14.5-alpha Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2024 License: Apache-2.0 Imports: 6 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)

type YAMLDecoder

type YAMLDecoder struct{}

func (YAMLDecoder) Decode

func (YAMLDecoder) 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