aboutsummaryrefslogtreecommitdiff
path: root/http.go
blob: 8bab03e64b14448894800367459ad43d99f13eb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package sleepy

import (
	"net/url"
)

type (
	GetNotSupported    struct{}
	PostNotSupported   struct{}
	PutNotSupported    struct{}
	DeleteNotSupported struct{}
)

func (GetNotSupported) Get(values ...url.Values) (int, interface{}) {
	return 405, ""
}

func (PostNotSupported) Post(values ...url.Values) (int, interface{}) {
	return 405, ""
}

func (PutNotSupported) Put(values ...url.Values) (int, interface{}) {
	return 405, ""
}

func (DeleteNotSupported) Delete(values ...url.Values) (int, interface{}) {
	return 405, ""
}
bgstack15