Added server tests
This commit is contained in:
parent
14feba91f8
commit
a8700ce8f5
10 changed files with 116 additions and 36 deletions
6
http.go
6
http.go
|
@ -2,12 +2,6 @@ package web
|
|||
|
||||
import "strings"
|
||||
|
||||
// header is used to store HTTP headers.
|
||||
type header struct {
|
||||
Key string
|
||||
Value string
|
||||
}
|
||||
|
||||
// isRequestMethod returns true if the given string is a valid HTTP request method.
|
||||
func isRequestMethod(method string) bool {
|
||||
switch method {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue