public async Task <string> WriteResponseAsync(ProtocolResponse response) { return(await WriteResponseAsync(response.Encode())); }