Added server tests

This commit is contained in:
Eduard Urbach 2024-03-28 12:22:45 +01:00
parent 14feba91f8
commit a8700ce8f5
Signed by: eduard
GPG key ID: 49226B848C78F6C8
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 {