http

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateCert

func GenerateCert(certPath, keyPath string) error

func GetX509KeyPair

func GetX509KeyPair(certPath, keyPath string) (*x509.Certificate, crypto.PrivateKey, error)

func ServeProxy

func ServeProxy(opts *Options) error

Types

type Options

type Options struct {
	ListenAddr string
	CertPath   string
	KeyPath    string
	Apis       []string
}

type ScfModifier

type ScfModifier struct {
	// contains filtered or unexported fields
}

func NewScfModifier

func NewScfModifier(apis []string) (*ScfModifier, error)

func (*ScfModifier) ModifyRequest

func (m *ScfModifier) ModifyRequest(req *http.Request) error

func (*ScfModifier) ModifyResponse

func (m *ScfModifier) ModifyResponse(res *http.Response) error

Jump to

Keyboard shortcuts

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