public void Send(byte[] response) { if (!responseHeadersSent) { byte[] prepared = PrepareHeaders(response.Length); transport.SendOutput(requestId, requestNumber, prepared, prepared.Length); responseHeadersSent = true; } transport.SendOutput(requestId, requestNumber, response, response.Length); }
public override void SendResponseFromMemory(byte[] data, int length) { EnsureHeadersSent(); transport.SendOutput(requestId, requestNumber, data, length); }