http

package
v0.0.0-...-477ec8c Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(w http.ResponseWriter, r *http.Request, err error)

func FormInt

func FormInt(r *http.Request, key string) int

func FormIntPtr

func FormIntPtr(r *http.Request, key string) *int

func FormString

func FormString(r *http.Request, key string) string

func FormStringPtr

func FormStringPtr(r *http.Request, key string) *string

func OverrideMethod

func OverrideMethod(next http.Handler) http.Handler

OverrideMethod overrides the request method if "_method" form field exists.

func PostFormInt

func PostFormInt(r *http.Request, key string) int

func PostFormIntPtr

func PostFormIntPtr(r *http.Request, key string) *int

func PostFormString

func PostFormString(r *http.Request, key string) string

func PostFormStringPtr

func PostFormStringPtr(r *http.Request, key string) *string

func URLInt

func URLInt(v url.Values, key string) int

func URLIntPtr

func URLIntPtr(v url.Values, key string) *int

func URLString

func URLString(v url.Values, key string) string

func URLStringPtr

func URLStringPtr(v url.Values, key string) *string

func WriteHeader

func WriteHeader(w http.ResponseWriter, err error)

Types

type Handler

type Handler struct {
	WidgetService tinyego.WidgetService
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler() *Handler

type Server

type Server struct {
	*http.Server
}

Server represents an HTTP server.

func NewServer

func NewServer() *Server

NewServer returns a new instance of Server.

func (*Server) Close

func (s *Server) Close() error

Close shuts down the server.

func (*Server) Open

func (s *Server) Open() error

Open opens the server.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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