Lines Matching defs:resp

98 	const struct http_response *resp,
102 i_debug("RESPONSE: %u %s", resp->status, resp->reason);
104 test_assert(resp->status == HTTP_CLIENT_REQUEST_ERROR_CONNECT_FAILED);
105 test_assert(resp->reason != NULL && *resp->reason != '\0');
166 const struct http_response *resp,
170 i_debug("RESPONSE: %u %s", resp->status, resp->reason);
177 const struct http_response *resp,
181 i_debug("RESPONSE: %u %s", resp->status, resp->reason);
183 test_assert(resp->status == HTTP_CLIENT_REQUEST_ERROR_CONNECT_FAILED);
184 test_assert(resp->reason != NULL && *resp->reason != '\0');
244 const struct http_response *resp,
248 i_debug("RESPONSE: %u %s", resp->status, resp->reason);
250 test_assert(resp->status == HTTP_CLIENT_REQUEST_ERROR_INVALID_URL);
251 test_assert(resp->reason != NULL && *resp->reason != '\0');
310 const struct http_response *resp,
314 i_debug("RESPONSE: %u %s", resp->status, resp->reason);
316 test_assert(resp->status == HTTP_CLIENT_REQUEST_ERROR_HOST_LOOKUP_FAILED);
317 test_assert(resp->reason != NULL && *resp->reason != '\0');
385 const struct http_response *resp,
392 i_debug("RESPONSE: %u %s", resp->status, resp->reason);
394 test_assert(resp->status == HTTP_CLIENT_REQUEST_ERROR_CONNECT_FAILED);
395 test_assert(resp->reason != NULL && *resp->reason != '\0');
495 const struct http_response *resp,
502 i_debug("RESPONSE: %u %s", resp->status, resp->reason);
504 test_assert(resp->status == HTTP_CLIENT_REQUEST_ERROR_CONNECTION_LOST);
505 test_assert(resp->reason != NULL && *resp->reason != '\0');
581 const struct http_response *resp,
585 i_debug("RESPONSE: %u %s", resp->status, resp->reason);
587 test_assert(resp->status == HTTP_CLIENT_REQUEST_ERROR_CONNECT_FAILED);
588 test_assert(resp->reason != NULL && *resp->reason != '\0');
649 static const char *resp =
653 o_stream_nsend_str(conn->conn.output, resp);
668 static const char *resp =
672 o_stream_nsend_str(conn->conn.output, resp);
687 string_t *resp;
689 resp = t_str_new(512);
690 str_printfa(resp,
696 str_data(resp), str_len(resp));
710 const struct http_response *resp,
714 i_debug("RESPONSE: %u %s", resp->status, resp->reason);
716 test_assert(resp->status == HTTP_CLIENT_REQUEST_ERROR_INVALID_REDIRECT);
717 test_assert(resp->reason != NULL && *resp->reason != '\0');
779 string_t *resp;
781 resp = t_str_new(512);
782 str_printfa(resp,
788 str_data(resp), str_len(resp));
802 const struct http_response *resp,
806 i_debug("RESPONSE: %u %s", resp->status, resp->reason);
808 test_assert(resp->status == HTTP_CLIENT_REQUEST_ERROR_ABORTED);
809 test_assert(resp->reason != NULL && *resp->reason != '\0');
874 const struct http_response *resp,
878 i_debug("RESPONSE: %u %s", resp->status, resp->reason);
880 test_assert(resp->status == HTTP_CLIENT_REQUEST_ERROR_ABORTED);
881 test_assert(resp->reason != NULL && *resp->reason != '\0');
933 static const char *resp =
938 o_stream_nsend_str(conn->conn.output, resp);
952 const struct http_response *resp,
956 i_debug("RESPONSE: %u %s", resp->status, resp->reason);
958 test_assert(resp->status == HTTP_CLIENT_REQUEST_ERROR_BROKEN_PAYLOAD);
959 test_assert(resp->reason != NULL && *resp->reason != '\0');
1054 const struct http_response *resp,
1060 i_debug("RESPONSE: %u %s", resp->status, resp->reason);
1062 test_assert(resp->status == HTTP_CLIENT_REQUEST_ERROR_CONNECTION_LOST);
1063 test_assert(resp->reason != NULL && *resp->reason != '\0');
1173 static const char *resp =
1176 o_stream_nsend_str(conn->conn.output, resp);
1194 const struct http_response *resp,
1198 i_debug("RESPONSE: %u %s", resp->status, resp->reason);
1200 test_assert(resp->status == HTTP_CLIENT_REQUEST_ERROR_CONNECTION_LOST);
1201 test_assert(resp->reason != NULL && *resp->reason != '\0');
1274 static const char *resp =
1278 o_stream_nsend_str(conn->conn.output, resp);
1296 const struct http_response *resp,
1300 i_debug("SUB-RESPONSE: %u %s", resp->status, resp->reason);
1306 const struct http_response *resp,
1313 i_debug("RESPONSE: %u %s", resp->status, resp->reason);
1315 test_assert(resp->status == 200);
1316 test_assert(resp->reason != NULL && *resp->reason != '\0');
1404 static const char *resp =
1411 o_stream_nsend_str(conn->conn.output, resp);
1429 const struct http_response *resp,
1433 i_debug("RESPONSE: %u %s", resp->status, resp->reason);
1436 test_assert(resp->status == HTTP_CLIENT_REQUEST_ERROR_BAD_RESPONSE);
1438 test_assert(resp->status == 200);
1439 test_assert(resp->reason != NULL && *resp->reason != '\0');
1522 static const char *resp =
1525 o_stream_nsend_str(conn->conn.output, resp);
1543 const struct http_response *resp,
1547 i_debug("RESPONSE: %u %s", resp->status, resp->reason);
1549 test_assert(resp->status == HTTP_CLIENT_REQUEST_ERROR_BAD_RESPONSE);
1550 test_assert(resp->reason != NULL && *resp->reason != '\0');
1626 const struct http_response *resp,
1630 i_debug("RESPONSE: %u %s", resp->status, resp->reason);
1632 test_assert(resp->status == HTTP_CLIENT_REQUEST_ERROR_TIMED_OUT);
1633 test_assert(resp->reason != NULL && *resp->reason != '\0');
1683 const struct http_response *resp,
1687 i_debug("RESPONSE: %u %s", resp->status, resp->reason);
1689 test_assert(resp->status == HTTP_CLIENT_REQUEST_ERROR_TIMED_OUT);
1690 test_assert(resp->reason != NULL && *resp->reason != '\0');
1814 static const char *resp =
1822 o_stream_nsend_str(conn->conn.output, resp);
1841 const struct http_response *resp,
1845 i_debug("RESPONSE: %u %s", resp->status, resp->reason);
1926 static const char *resp =
1931 o_stream_nsend_str(conn->conn.output, resp);
1950 const struct http_response *resp,
1954 i_debug("RESPONSE: %u %s", resp->status, resp->reason);
1956 i_assert(resp->status == 500);
2017 static const char *resp =
2025 o_stream_nsend_str(conn->conn.output, resp);
2043 const struct http_response *resp,
2047 i_debug("RESPONSE: %u %s", resp->status, resp->reason);
2119 string_t *resp;
2121 resp = t_str_new(512);
2122 str_printfa(resp,
2126 str_data(resp), str_len(resp));
2146 const struct http_response *resp,
2152 i_debug("RESPONSE: %u %s", resp->status, resp->reason);
2154 test_assert(resp->status == 500);
2155 test_assert(resp->reason != NULL && *resp->reason != '\0');
2229 const struct http_response *resp,
2233 i_debug("RESPONSE: %u %s", resp->status, resp->reason);
2235 test_assert(resp->status == HTTP_CLIENT_REQUEST_ERROR_HOST_LOOKUP_FAILED);
2236 test_assert(resp->reason != NULL && *resp->reason != '\0');
2314 const struct http_response *resp,
2318 i_debug("RESPONSE: %u %s", resp->status, resp->reason);
2320 test_assert(resp->status == HTTP_CLIENT_REQUEST_ERROR_HOST_LOOKUP_FAILED);
2321 test_assert(resp->reason != NULL && *resp->reason != '\0');
2402 const struct http_response *resp,
2406 i_debug("RESPONSE: %u %s", resp->status, resp->reason);
2408 test_assert(resp->status == HTTP_CLIENT_REQUEST_ERROR_HOST_LOOKUP_FAILED);
2409 test_assert(resp->reason != NULL && *resp->reason != '\0');
2502 string_t *resp;
2504 resp = t_str_new(512);
2505 str_printfa(resp,
2510 str_data(resp), str_len(resp));
2530 const struct http_response *resp,
2534 i_debug("RESPONSE: %u %s", resp->status, resp->reason);
2536 test_assert(resp->status == HTTP_CLIENT_REQUEST_ERROR_HOST_LOOKUP_FAILED);
2537 test_assert(resp->reason != NULL && *resp->reason != '\0');
2569 const struct http_response *resp,
2573 i_debug("RESPONSE: %u %s", resp->status, resp->reason);
2575 test_assert(resp->status == 200);
2637 static const char *resp =
2640 o_stream_nsend_str(conn->conn.output, resp);
2662 const struct http_response *resp,
2666 i_debug("RESPONSE: %u %s", resp->status, resp->reason);
2668 test_assert(resp->status == HTTP_CLIENT_REQUEST_ERROR_CONNECT_FAILED);
2669 test_assert(resp->reason != NULL && *resp->reason != '\0');
2690 const struct http_response *resp,
2694 i_debug("RESPONSE: %u %s", resp->status, resp->reason);
2697 test_assert(resp->status == 200);
2702 test_assert(resp->status == HTTP_CLIENT_REQUEST_ERROR_CONNECT_FAILED);
2705 test_assert(resp->reason != NULL && *resp->reason != '\0');
2799 static const char *resp =
2805 o_stream_nsend_str(conn->conn.output, resp);
2824 const struct http_response *resp,
2828 i_debug("RESPONSE: %u %s", resp->status, resp->reason);
2830 test_assert(resp->status == HTTP_CLIENT_REQUEST_ERROR_CONNECT_FAILED);
2831 test_assert(resp->reason != NULL && *resp->reason != '\0');
2857 const struct http_response *resp,
2861 i_debug("RESPONSE: %u %s", resp->status, resp->reason);
2863 test_assert(resp->status == 200);
2864 test_assert(resp->reason != NULL && *resp->reason != '\0');