MCPcopy
hub / github.com/OpenTSDB/opentsdb / sendReply

Method sendReply

src/tsd/HttpQuery.java:529–531  ·  view source on GitHub ↗

Sends data in an HTTP "200 OK" reply to the client. @param data Raw byte array to send as-is after the HTTP headers.

(final byte[] data)

Source from the content-addressed store, hash-verified

527 * @param data Raw byte array to send as-is after the HTTP headers.
528 */
529 public void sendReply(final byte[] data) {
530 sendBuffer(HttpResponseStatus.OK, ChannelBuffers.wrappedBuffer(data));
531 }
532
533 /**
534 * Sends data to the client with the given HTTP status code.

Callers 15

sendReplyBytesMethod · 0.95
sendReplyBytesNullMethod · 0.95
sendReplyStatusBytesMethod · 0.95
sendReplySBMethod · 0.95
sendReplySBNullMethod · 0.95
sendReplyStringMethod · 0.95
sendReplyStringNullMethod · 0.95
sendReplyStatusSBMethod · 0.95

Calls 2

sendBufferMethod · 0.95
toStringMethod · 0.45

Tested by 15

sendReplyBytesMethod · 0.76
sendReplyBytesNullMethod · 0.76
sendReplyStatusBytesMethod · 0.76
sendReplySBMethod · 0.76
sendReplySBNullMethod · 0.76
sendReplyStringMethod · 0.76
sendReplyStringNullMethod · 0.76
sendReplyStatusSBMethod · 0.76