api

package
v0.0.0-...-f0d5876 Latest Latest
Warning

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

Go to latest
Published: May 23, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusOK = http.StatusOK

	XForwardedProto    = "X-Forwarded-Proto"
	XForwardedProtocol = "X-Forwarded-Protocol"
	XForwardedSSL      = "X-Forwarded-Ssl"
)

Variables

This section is empty.

Functions

func Any

func Any(g lars.IRouteGroup, p string, h ...lars.Handler)

func Anything

func Anything(c *server.Context) error

func GetHeaders

func GetHeaders(c *server.Context) error

func GetIP

func GetIP(c *server.Context) error

func GetUUID

func GetUUID(c *server.Context) error

func GetUserAgent

func GetUserAgent(c *server.Context) error

func Redirect

func Redirect(c *server.Context) error

func Stream

func Stream(c *server.Context) error

Types

type BaseResponse

type BaseResponse struct {
	URL     string              `json:"url"`
	Args    map[string][]string `json:"args"`
	Form    map[string][]string `json:"form"`
	Data    []byte              `json:"data"`
	Origin  string              `json:"origin"`
	Headers map[string][]string `json:"headers"`
	Files   map[string][][]byte `json:"files"`
	JSON    interface{}         `json:"json"`
	Method  string              `json:"method"`
}

func NewResponse

func NewResponse(c lars.Context) *BaseResponse

Jump to

Keyboard shortcuts

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