Documentation ¶
Index ¶
- func NewHandler(res types.Resource) http.HandlerFunc
- type ContentHandler
- type Resource
- func (r *Resource) AllowMissingPost() bool
- func (r *Resource) AllowedMethods() []string
- func (r *Resource) Authorized(w http.ResponseWriter, auth string) bool
- func (r *Resource) BaseURI() string
- func (r *Resource) CharsetsProvided() []string
- func (r *Resource) ContentTypesAccepted() types.HandlerMap
- func (r *Resource) ContentTypesProvided() types.HandlerMap
- func (r *Resource) CreatePath() string
- func (r *Resource) DefaultCharset() string
- func (r *Resource) DeleteCompleted() bool
- func (r *Resource) DeleteResource() bool
- func (r *Resource) ETAG() string
- func (r *Resource) EncodingsProvided() []string
- func (r *Resource) Exists() bool
- func (r *Resource) Expires() time.Time
- func (r *Resource) FinishRequest()
- func (r *Resource) Forbidden() bool
- func (r *Resource) IsConflict() bool
- func (r *Resource) KnownContentType(c string) bool
- func (r *Resource) KnownMethods() []string
- func (r *Resource) LanguagesProvided() []string
- func (r *Resource) LastModified() time.Time
- func (r *Resource) Location() string
- func (r *Resource) MalformedRequest(req *http.Request) bool
- func (r *Resource) MovedPermanently() bool
- func (r *Resource) MovedTemporarily() bool
- func (r *Resource) MultipleChoices() bool
- func (r *Resource) Options(w http.ResponseWriter)
- func (r *Resource) PostIsCreate() bool
- func (r *Resource) PreviouslyExisted() bool
- func (r *Resource) ProcessPost(w http.ResponseWriter, req *http.Request) error
- func (r *Resource) ServiceAvailable() bool
- func (r *Resource) URLTooLong(u *url.URL) bool
- func (r *Resource) ValidContentHeaders(req *http.Request) bool
- func (r *Resource) ValidEntityLength(length string) bool
- func (r *Resource) Variances() []string
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
func NewHandler(res types.Resource) http.HandlerFunc
Types ¶
type Resource ¶
type Resource struct{}
func (*Resource) AllowMissingPost ¶
func (*Resource) AllowedMethods ¶
func (*Resource) Authorized ¶
func (r *Resource) Authorized(w http.ResponseWriter, auth string) bool
func (*Resource) CharsetsProvided ¶
func (*Resource) ContentTypesAccepted ¶
func (r *Resource) ContentTypesAccepted() types.HandlerMap
func (*Resource) ContentTypesProvided ¶
func (r *Resource) ContentTypesProvided() types.HandlerMap
func (*Resource) CreatePath ¶
func (*Resource) DefaultCharset ¶
func (*Resource) DeleteCompleted ¶
func (*Resource) DeleteResource ¶
func (*Resource) EncodingsProvided ¶
func (*Resource) FinishRequest ¶
func (r *Resource) FinishRequest()
func (*Resource) IsConflict ¶
func (*Resource) KnownContentType ¶
func (*Resource) KnownMethods ¶
func (*Resource) LanguagesProvided ¶
func (*Resource) LastModified ¶
func (*Resource) MovedPermanently ¶
func (*Resource) MovedTemporarily ¶
func (*Resource) MultipleChoices ¶
func (*Resource) Options ¶
func (r *Resource) Options(w http.ResponseWriter)
func (*Resource) PostIsCreate ¶
func (*Resource) PreviouslyExisted ¶
func (*Resource) ProcessPost ¶
func (*Resource) ServiceAvailable ¶
func (*Resource) ValidContentHeaders ¶
func (*Resource) ValidEntityLength ¶
type Response ¶
type Response struct { http.ResponseWriter // contains filtered or unexported fields }
func (*Response) SetCharset ¶
Directories ¶
Path | Synopsis |
---|---|
yapc-talk-examples
#!perl use strict; use warnings; use Web::Machine; =pod This test shows that the order of content_types_provided is actually important if you do not specify a media-type.
|
#!perl use strict; use warnings; use Web::Machine; =pod This test shows that the order of content_types_provided is actually important if you do not specify a media-type. |
Click to show internal directories.
Click to hide internal directories.