MCPcopy Create free account
hub / github.com/BryanMwangi/pine / SendFile

Method SendFile

file.go:92–95  ·  view source on GitHub ↗
(filePath string)

Source from the content-addressed store, hash-verified

90}
91
92func (c *Ctx) SendFile(filePath string) error {
93 http.ServeFile(c.Response, c.Request, filePath)
94 return nil
95}
96
97func (c *Ctx) StreamFile(filePath string) error {
98 file, err := os.Open(filePath)

Callers 1

mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected