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
+14
View File
@@ -0,0 +1,14 @@
package http
type HttpError struct {
Status StatusCode
Msg string
}
func (e *HttpError) Error() string {
return e.Status.String() + ": " + e.Msg
}
func NewHttpError(code StatusCode, msg string) *HttpError {
return &HttpError{Status: code, Msg: msg}
}