MCPcopy Index your code
hub / github.com/OpenTSDB/opentsdb / sendFile

Method sendFile

src/tsd/HttpQuery.java:611–614  ·  view source on GitHub ↗

Send a file (with zero-copy) to the client with a 200 OK status. This method doesn't provide any security guarantee. The caller is responsible for the argument they pass in. @param path The path to the file to send to the client. @param max_age The expiration time of this entity, in seconds. This

(final String path,
                       final int max_age)

Source from the content-addressed store, hash-verified

609 * caching.
610 */
611 public void sendFile(final String path,
612 final int max_age) throws IOException {
613 sendFile(HttpResponseStatus.OK, path, max_age);
614 }
615
616 /**
617 * Send a file (with zero-copy) to the client.

Callers 4

executeMethod · 0.80
isDiskCacheHitMethod · 0.80
respondAsciiQueryMethod · 0.80
executeMethod · 0.80

Calls 15

doneMethod · 0.95
sendReplyMethod · 0.95
guessMimeTypeFromUriMethod · 0.95
channelMethod · 0.80
isEmptyMethod · 0.80
formatNotFoundV1Method · 0.80
setMethod · 0.80
responseMethod · 0.80
getMessageMethod · 0.65
removeMethod · 0.65
logWarnMethod · 0.45
getQueryStringMethod · 0.45

Tested by

no test coverage detected