forked from mtusi2026/mtusi2026lab5
chore(lab5): remove stale templates and refresh source comments
This commit is contained in:
@@ -101,7 +101,7 @@ func (h *Handler) Upload(c fiber.Ctx) error {
|
||||
// decoding anything. Chunked requests are caught by the streaming counter
|
||||
// below.
|
||||
//
|
||||
// AGENT: the declared body is drained first, but only within the bounded
|
||||
// The declared body is drained first, but only within the bounded
|
||||
// HTTP envelope (upload limit plus the JSON body slack). If the server
|
||||
// closed immediately, the client would often see a connection reset instead
|
||||
// of the required 413 while it was still sending. Draining is bounded and
|
||||
@@ -134,7 +134,7 @@ func (h *Handler) Upload(c fiber.Ctx) error {
|
||||
_ = os.Remove(filePath)
|
||||
}()
|
||||
|
||||
// AGENT: the 32 KiB copy buffer is the only request-sized allocation here.
|
||||
// The 32 KiB copy buffer is the only request-sized allocation here.
|
||||
// The body is never read with io.ReadAll, so ten simultaneous 10 MiB
|
||||
// uploads do not require ten 10 MiB Go slices.
|
||||
var reader io.Reader = requestBody(c)
|
||||
@@ -230,7 +230,7 @@ func (h *Handler) Get(c fiber.Ctx) error {
|
||||
return err
|
||||
}
|
||||
|
||||
// queued/processing snapshots are part of lab5: the client polls this
|
||||
// Queued/processing snapshots; the client polls this
|
||||
// endpoint until status becomes ready or failed.
|
||||
return c.JSON(attachment)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user