proxy

package
v0.0.0-...-0b332ed Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Copyright © 2023 The Spray Proxy Contributors

SPDX-License-Identifier: Apache-2.0

SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackendsFunc

type BackendsFunc func() []string

type SprayProxy

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

func NewSprayProxy

func NewSprayProxy(insecureTLS bool, backends ...string) (*SprayProxy, error)

func (*SprayProxy) Backends

func (p *SprayProxy) Backends() []string

func (*SprayProxy) HandleProxy

func (p *SprayProxy) HandleProxy(c *gin.Context)

func (*SprayProxy) InsecureSkipTLSVerify

func (p *SprayProxy) InsecureSkipTLSVerify() bool

InsecureSkipTLSVerify indicates if the proxy is skipping TLS verification. This setting is insecure and should not be used in production.

type SprayWriter

type SprayWriter struct {
	http.ResponseWriter
	// contains filtered or unexported fields
}

func NewSprayWriter

func NewSprayWriter() *SprayWriter

func (*SprayWriter) Header

func (w *SprayWriter) Header() http.Header

func (*SprayWriter) Write

func (w *SprayWriter) Write(body []byte) (int, error)

func (*SprayWriter) WriteHeader

func (w *SprayWriter) WriteHeader(statusCode int)

Jump to

Keyboard shortcuts

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