Skip to content

Latest commit

 

History

History
40 lines (30 loc) · 1.39 KB

README.md

File metadata and controls

40 lines (30 loc) · 1.39 KB

headers

GitHub release Github main status Go Report Card Coverage report

HTTP header constants for Gophers.

Installation

go install github.com/nafigator/http/headers

Usage

import (
  "fmt"

  "github.com/nafigator/http/headers"
)

fmt.Println(headers.AcceptCharset)              // Accept-Charset
fmt.Println(headers.IfNoneMatch)                // If-None-Match
fmt.Println(headers.Normalize("conTent-tYpe"))  // Content-Type

Tests

Clone repo and run:

go test -C tests ./...