unexport request, response methods

This commit is contained in:
2026-02-19 00:25:47 +00:00
parent f74fbedacc
commit b1161e1e97
3 changed files with 9 additions and 9 deletions

View File

@@ -12,10 +12,10 @@ func newResponse() response {
return response{}
}
func (r response) IsValid(buf []byte) bool {
func (r response) isValid(buf []byte) bool {
return len(buf) > len(responseHeader) && bytes.HasPrefix(buf, []byte(responseHeader))
}
func (r response) Decode(buf []byte) string {
func (r response) decode(buf []byte) string {
return string(buf[len(responseHeader):])
}