Lines Matching refs:rsp
498 struct http_response_ctx *rsp, enum http_data_status data_status, in http2_dynamic_response() argument
503 bool final_response = http_response_is_final(rsp, data_status); in http2_dynamic_response()
505 if (client->current_stream->headers_sent && (rsp->header_count > 0 || rsp->status != 0)) { in http2_dynamic_response()
512 if (rsp->status == 0) { in http2_dynamic_response()
513 rsp->status = 200; in http2_dynamic_response()
516 if (rsp->status < HTTP_100_CONTINUE || in http2_dynamic_response()
517 rsp->status > HTTP_511_NETWORK_AUTHENTICATION_REQUIRED) { in http2_dynamic_response()
518 LOG_DBG("Invalid HTTP status code: %d", rsp->status); in http2_dynamic_response()
522 if (rsp->headers == NULL && rsp->header_count > 0) { in http2_dynamic_response()
527 if (final_response && rsp->body_len == 0) { in http2_dynamic_response()
532 ret = send_headers_frame(client, rsp->status, frame->stream_identifier, in http2_dynamic_response()
534 rsp->headers, rsp->header_count); in http2_dynamic_response()
543 if (rsp->body != NULL && rsp->body_len > 0) { in http2_dynamic_response()
549 ret = send_data_frame(client, rsp->body, rsp->body_len, frame->stream_identifier, in http2_dynamic_response()