canonical

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Body

func Body(w io.Writer, canonical Canonicalization) io.WriteCloser

ボディの正規化を行う関数です。

func Header(s string, canonical Canonicalization) string

ヘッダの正規化を行う関数です。

func RelaxedBody

func RelaxedBody(w io.Writer) io.WriteCloser

ボディをリラックス正規化する関数です。

func RelaxedHeader

func RelaxedHeader(s string) string

ヘッダのリラックス正規化を行う関数です。

func SimpleBody

func SimpleBody(w io.Writer) io.WriteCloser

ボディをシンプル正規化する関数です。

func SimpleHeader

func SimpleHeader(s string) string

ヘッダのシンプル正規化を行う関数です。

Types

type Canonicalization

type Canonicalization string

シンプルとリラックスの2つの正規化アルゴリズムを定義します。

const (
	Simple  Canonicalization = "simple"
	Relaxed Canonicalization = "relaxed"
)

Jump to

Keyboard shortcuts

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