capability

package
v0.0.0-...-3d9cc79 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Handles requests about generic capabilities of the server Any requests specific to a resource are handled by that resource's Route.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServerCapabilityRoute

type ServerCapabilityRoute struct {
	Target     string
	Controller ServerResource
}

func NewRoute

func NewRoute(target string) *ServerCapabilityRoute

func (*ServerCapabilityRoute) Route

func (route *ServerCapabilityRoute) Route(requested http.RequestMessage) http.Request

type ServerResource

type ServerResource interface {
	Options(writer io.Writer)
}

Reports the global, generic capabilities of this server, without regard to resource or state

type StaticCapabilityServer

type StaticCapabilityServer struct {
	AvailableMethods []string
}

Reports on server capabilities that are defined during startup and do not change after that

func (*StaticCapabilityServer) Options

func (controller *StaticCapabilityServer) Options(client io.Writer)

Jump to

Keyboard shortcuts

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