corsorigin

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2026 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package corsorigin validates and canonicalizes CORS origin strings.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Origin

type Origin struct {
	Scheme string
	Host   string
	Port   string
}

Origin is a canonical HTTP origin.

func Parse

func Parse(raw string) (Origin, error)

Parse validates a literal HTTP origin and returns its canonical form.

func (Origin) String

func (origin Origin) String() string

Jump to

Keyboard shortcuts

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