solve #4 by adding features and use cases to README

This commit is contained in:
soypat
2025-07-19 17:52:42 -03:00
parent 63dc5d1079
commit 9bd906326e
2 changed files with 30 additions and 2 deletions
+2 -2
View File
@@ -4,11 +4,11 @@ import (
"bytes"
"errors"
"io"
"net/http"
"slices"
)
const (
methodGet = "GET"
strHTTP11 = "HTTP/1.1"
strCRLF = "\r\n"
headerCookie = "Cookie"
@@ -328,7 +328,7 @@ func (h *Header) AppendRequest(dst []byte) ([]byte, error) {
}
method := h.Method()
if len(method) == 0 {
dst = append(dst, http.MethodGet...)
dst = append(dst, methodGet...)
} else {
dst = append(dst, method...)
}