semantics

package module
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2025 License: MIT Imports: 4 Imported by: 1

README

Go package http/semantics

Build Status Coverage Report License Proprietary

Package http/semantics implements RFC 9110 HTTP Semantics.

Documentation

Overview

Package http/semantics implements (parts of) RFC 9110 HTTP Semantics (https://httpwg.org/specs/rfc9111.html).

Index

Constants

View Source
const (

	// preferred format
	IMFFixDateformat = "Mon, 02 Jan 2006 15:04:05 GMT"
)

Variables

This section is empty.

Functions

func HTTPDate

func HTTPDate(date string, caseSensitive bool) (time.Time, error)

HTTPDate parses date as an HTTP-Date and returns a time. The format of the HTTP-Date is specified in RFC 9110 HTTP Semantics Section 5.6.7 Date/Time Format (see https://httpwg.org/specs/rfc9110.html#rfc.section.5.6.7). The caseSensitive flag is needed to fully implement HTTP-Date parsing for RFC 9111 HTTP Caching (see https://httpwg.org/specs/rfc9111.html#rfc.section.4.2) which mandates that HTTP caching servers should parse dates case-insensitive.

Types

This section is empty.

Source Files

  • semantics.go

Jump to

Keyboard shortcuts

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