Added server tests

This commit is contained in:
2024-03-28 12:22:45 +01:00
parent 245a085020
commit 805f92468a
10 changed files with 116 additions and 36 deletions

View File

@ -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 {