contenttype

package
v0.0.0-...-ced4685 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContentType

type ContentType struct {
	TopLevelType string
	SubType      string
	Suffix       string
	Parameters   map[string]string
}

func ParseContentType

func ParseContentType(contentType string) (ContentType, error)

func (*ContentType) Equals

func (contentType *ContentType) Equals(other ContentType) bool

func (*ContentType) FilterParameters

func (contentType *ContentType) FilterParameters(parameters map[string]bool)

func (*ContentType) String

func (contentType *ContentType) String() string

type Filter

type Filter func(contentType ContentType) bool

func NewFilterContains

func NewFilterContains(partialMimeType string) Filter

func NewFilterEquals

func NewFilterEquals(TopLevelType, SubType, Suffix string) Filter

func NewFilterOr

func NewFilterOr(contentTypeFilterList []Filter) Filter

Jump to

Keyboard shortcuts

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