moved Read/Send code to http.Connection
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
package server
|
||||
|
||||
import "serveg/internal/http"
|
||||
|
||||
// TODO implement file uploading
|
||||
func (conn *TcpConnection) handleUpload(req *http.Request) *http.Response {
|
||||
// TODO: use os.OpenFile(filePath + ".upload", os.O_CREATE|os.O_EXCL|os.O_WRONLY, 0o644)
|
||||
// if such file exists, send response like
|
||||
// "somebody is uploading such file right now"
|
||||
// TODO: defer { if !renamed { os.Remove(tmp) } }
|
||||
panic("unimplemented")
|
||||
}
|
||||
Reference in New Issue
Block a user