httpaccept

package module
v0.0.0-...-f693770 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2025 License: MIT Imports: 3 Imported by: 2

README

go-httpaccept

Package httpaccept provides tools for working with the HTTP Accept request header, for the Go programming language.

Documention

Online documentation, which includes examples, can be found at: http://godoc.org/codeberg.org/reiver/go-httpaccept

GoDoc

Import

To import package httpaccept use import code like the following:

import "codeberg.org/reiver/go-httpaccept"

Installation

To install package httpaccept do the following:

GOPROXY=direct go get codeberg.org/reiver/go-httpaccept

Author

Package httpaccept was written by Charles Iliya Krempeaux

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasMediaType

func HasMediaType(accept string, mediaTypes ...string) (string, bool)

HasMediaType returns true if the value of the "Accept" HTTP request header has one of the listed media-types.

Types

This section is empty.

Jump to

Keyboard shortcuts

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