header

package
v0.0.0-...-b87209e Latest Latest
Warning

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

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

Documentation

Overview

Package header implements header manipulation utilities

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAcceptType

func GetAcceptType(c codecs.Map, acceptHeader string, contentType string) string

GetAcceptType parses the Accept header and checks against the available codecs to find a matching content type.

func GetContentType

func GetContentType(header string) (string, error)

GetContentType parses the content type from the header value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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