Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ContentSquare/chproxy
/ Close
Method
Close
cache/tmp_file_response_writer.go:46–49 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
44
}
45
46
func
(rw *TmpFileResponseWriter) Close() error {
47
rw.tmpFile.Close()
48
return
os.Remove(rw.tmpFile.Name())
49
}
50
51
func
(rw *TmpFileResponseWriter) GetFile() (*os.File, error) {
52
if
err := rw.bw.Flush(); err != nil {
Callers
8
serveFromCache
Method · 0.95
TestFileCreation
Function · 0.95
TestFileRemoval
Function · 0.95
TestWriteThenReadHeader
Function · 0.95
TestWriteThenReadContent
Function · 0.95
TestWriteThenReadStatusCode
Function · 0.95
TestCacheClean
Function · 0.95
GetFile
Method · 0.45
Calls
1
Name
Method · 0.65
Tested by
6
TestFileCreation
Function · 0.76
TestFileRemoval
Function · 0.76
TestWriteThenReadHeader
Function · 0.76
TestWriteThenReadContent
Function · 0.76
TestWriteThenReadStatusCode
Function · 0.76
TestCacheClean
Function · 0.76