sendHeaders

private fun sendHeaders(ex: HttpExchange, id: JsonElement?, isInitialize: Boolean)

Sent before the work: a notification's 202 is its whole reply, and a request's 200 does not depend on the work — so execute_code can write while it waits (await).