Added server tests
This commit is contained in:
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 {
|
||||
|
Reference in New Issue
Block a user