implemented HTTP 1.0/1.1 server

This commit is contained in:
Altair-sh
2026-11-01 20:43:08 +01:00
parent 2de1f038c7
commit e0cf8a12a9
13 changed files with 956 additions and 68 deletions
+13
View File
@@ -0,0 +1,13 @@
package string_helper
import "unsafe"
func UnsafeGetStrBytes(s string) []byte {
pointr := unsafe.StringData(s)
return unsafe.Slice(pointr, len(s))
}
func UnsafeBytesToStr(b []byte) string {
pointr := unsafe.SliceData(b)
return unsafe.String(pointr, len(b))
}