manager

package
v0.0.0-...-bf59454 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IOEvent

type IOEvent struct {
	ID      int64 `json:"id,omitempty"`
	Request struct {
		Body    string      `json:"body"`
		Headers http.Header `json:"headers"`
	} `json:"request,omitempty"`
	Response struct {
		Body    string      `json:"body"`
		Headers http.Header `json:"headers"`
	} `json:"Response,omitempty"`
	Code int    `json:"code,omitempty"`
	URL  string `json:"url,omitempty"`
}

IOEvent represents either an incoming http request or an outgoing http response

type M

type M struct {
	Upstream *httputil.ReverseProxy
	// contains filtered or unexported fields
}

M controls both the proxy redirection and the clients that want to inspect requests

func (*M) Manager

func (m *M) Manager() http.Handler

func (*M) Proxy

func (m *M) Proxy() http.Handler

Jump to

Keyboard shortcuts

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