void sendHeaders(List<Header> headers, {bool endStream = false}) { outgoingMessages.add(HeadersStreamMessage(headers, endStream: endStream)); if (endStream) outgoingMessages.close(); }