public async void HttpPostSendJsonWithResponseHeadersTest() { ResponseBase result = await _client .Post() .Url("http://localhost:3000/headers") .Send(); uint statusCode = result.StatusCode(); var headers = result.Headers(); bool keyMatch = false; while (headers.MoveNext()) { if (headers.Current.Key == "X-TEST" && headers.Current.Value.ToArray()[0] == "ok") { keyMatch = true; } } Assert.Equal(200u, statusCode); Assert.True(keyMatch); }