context

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Impl

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

Impl is the internal implementation of |ghost.Context|. It is not goroutine-safe, so DO NOT use it in multi-goroutine.

func (*Impl) Body

func (i *Impl) Body() io.Reader

func (*Impl) FromRequest added in v0.1.1

func (i *Impl) FromRequest(r *http.Request) *Impl

func (*Impl) Header

func (i *Impl) Header(name string) (value string, found bool)

func (*Impl) Host added in v0.0.3

func (i *Impl) Host() string

func (*Impl) IsCrossOrigin added in v0.1.2

func (i *Impl) IsCrossOrigin() bool

func (*Impl) Json

func (i *Impl) Json(v interface{}) (err error)

func (*Impl) Method added in v0.0.3

func (i *Impl) Method() string

func (*Impl) Path added in v0.0.3

func (i *Impl) Path() string

func (*Impl) PathVar

func (i *Impl) PathVar(name string) string

func (*Impl) RemoteIp added in v0.0.3

func (i *Impl) RemoteIp() string

func (*Impl) Request

func (i *Impl) Request() *http.Request

func (*Impl) Scheme added in v0.0.3

func (i *Impl) Scheme() string

func (*Impl) SetPathVar added in v0.1.1

func (i *Impl) SetPathVar(name, value string)

Jump to

Keyboard shortcuts

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