better httpraw documentation

This commit is contained in:
soypat
2025-05-31 14:28:40 -03:00
parent 1ae8fab210
commit 6cd786a199
5 changed files with 27 additions and 34 deletions
+3 -3
View File
@@ -64,7 +64,7 @@ func TestHeaderParseRequest(t *testing.T) {
if err != nil {
t.Error(err)
}
key := string(c.Key())
key := string(c.Name())
if key != wantCookie.Name {
t.Errorf("want cookie key %q, got %q", wantCookie.Name, key)
}
@@ -76,11 +76,11 @@ func TestHeaderParseRequest(t *testing.T) {
if domain != wantCookie.Domain {
t.Errorf("want domain %q, got %q", wantCookie.Domain, domain)
}
httpOnly := c.HasValueOrKey("HttpOnly")
httpOnly := c.HasKeyOrSingleValue("HttpOnly")
if httpOnly != wantCookie.HttpOnly {
t.Errorf("want cookie HttpOnly %v, got %v", wantCookie.HttpOnly, httpOnly)
}
secure := c.HasValueOrKey("Secure")
secure := c.HasKeyOrSingleValue("Secure")
if secure != wantCookie.Secure {
t.Errorf("want cookie HttpOnly %v, got %v", wantCookie.Secure, secure)
}