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

Method sendBuffer

src/tsd/HttpQuery.java:698–703  ·  view source on GitHub ↗

Sends an HTTP reply to the client. @param status The status of the request (e.g. 200 OK or 404 Not Found). @param buf The content of the reply to send.

(final HttpResponseStatus status,
                          final ChannelBuffer buf)

Source from the content-addressed store, hash-verified

696 * @param buf The content of the reply to send.
697 */
698 private void sendBuffer(final HttpResponseStatus status,
699 final ChannelBuffer buf) {
700 final String contentType = (api_version < 1 ? guessMimeType(buf) :
701 serializer.responseContentType());
702 sendBuffer(status, buf, contentType);
703 }
704
705 /**
706 * Returns the result of an attempt to guess the MIME type of the response.

Callers 1

sendReplyMethod · 0.95

Calls 2

guessMimeTypeMethod · 0.95
responseContentTypeMethod · 0.45

Tested by

no test coverage detected