MCPcopy Create free account
hub / github.com/corestoreio/pkg / File

Method File

net/response/response.go:238–248  ·  view source on GitHub ↗

File sends a response with the content of the file. If `attachment` is set to true, the client is prompted to save the file with provided `name`, name can be empty, in that case name of the file is used.

(path, name string, attachment bool)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Calls 4

serveFileFunction · 0.85
SetMethod · 0.65
SplitMethod · 0.45
HeaderMethod · 0.45

Tested by 4