Lines Matching defs:response
10 #include "http-response-parser.h"
30 /* Valid response tests */
187 test_begin(t_strdup_printf("http response valid [%d]", i));
218 /* verify last response only */
219 test_out(t_strdup_printf("response->status = %d",
223 test_out(t_strdup_printf("response->payload = %s",
227 test_out(t_strdup_printf("response->payload = %s",
249 * Invalid response tests
315 struct http_response response;
331 test_begin(t_strdup_printf("http response invalid [%d]", i));
333 while ((ret=http_response_parse_next(parser, HTTP_RESPONSE_PAYLOAD_TYPE_ALLOWED, &response, &error)) > 0);
342 * Bad response tests
353 struct http_response response;
361 test_begin("http response with NULs (strict)");
369 HTTP_RESPONSE_PAYLOAD_TYPE_ALLOWED, &response, &error)) > 0);
375 test_begin("http response with NULs (lenient)");
382 HTTP_RESPONSE_PAYLOAD_TYPE_ALLOWED, &response, &error);
384 header = http_response_header_get(&response, "server");
391 HTTP_RESPONSE_PAYLOAD_TYPE_ALLOWED, &response, &error);