requestcontext

package
v0.8.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RequestContext

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

func New

func New(c *fiber.Ctx, method string, reqURL *url.URL, signer heimdall.JWTSigner) *RequestContext

func (*RequestContext) AddCookieForUpstream

func (s *RequestContext) AddCookieForUpstream(name, value string)

func (*RequestContext) AddHeaderForUpstream

func (s *RequestContext) AddHeaderForUpstream(name, value string)

func (*RequestContext) AppContext

func (s *RequestContext) AppContext() context.Context

func (*RequestContext) Body

func (s *RequestContext) Body() []byte

func (*RequestContext) Cookie

func (s *RequestContext) Cookie(name string) string

func (*RequestContext) Finalize

func (s *RequestContext) Finalize(statusCode int) error

func (*RequestContext) FinalizeAndForward

func (s *RequestContext) FinalizeAndForward(upstreamURL *url.URL, timeout time.Duration) error

func (*RequestContext) Header

func (s *RequestContext) Header(name string) string

func (*RequestContext) Headers

func (s *RequestContext) Headers() map[string]string

func (*RequestContext) Request

func (s *RequestContext) Request() *heimdall.Request

func (*RequestContext) RequestClientIPs

func (s *RequestContext) RequestClientIPs() []string

func (*RequestContext) SetPipelineError

func (s *RequestContext) SetPipelineError(err error)

func (*RequestContext) Signer

func (s *RequestContext) Signer() heimdall.JWTSigner

Jump to

Keyboard shortcuts

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