githubendpoint

package
v1.11.2 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package githubendpoint validates token-bearing GitHub API endpoints.

Index

Constants

This section is empty.

Variables

View Source
var ErrUnsafeEndpoint = errors.New("unsafe GitHub API endpoint")

Functions

func Parse

func Parse(raw string, options Options) (*url.URL, error)

func RedirectPolicy

func RedirectPolicy(base *url.URL) func(*http.Request, []*http.Request) error

Types

type Options

type Options struct {
	// AllowInsecureLoopback permits HTTP only for localhost test/development servers.
	AllowInsecureLoopback bool
}

Jump to

Keyboard shortcuts

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