daemon/http: HTTP response codes
Compare changes
Files
5+ 155
− 36
@@ -8,6 +8,7 @@
@@ -18,16 +19,26 @@
@@ -38,6 +49,19 @@
@@ -47,6 +71,13 @@ struct http_data {
@@ -174,7 +205,7 @@ static int check_uri(const char* uri_path)
@@ -340,8 +371,8 @@ static int header_callback(nghttp2_session *h2, const nghttp2_frame *frame,
@@ -359,9 +390,13 @@ static int header_callback(nghttp2_session *h2, const nghttp2_frame *frame,
@@ -377,8 +412,19 @@ static int header_callback(nghttp2_session *h2, const nghttp2_frame *frame,
@@ -442,7 +488,7 @@ static int data_chunk_recv_callback(nghttp2_session *h2, uint8_t flags, int32_t
@@ -463,12 +509,16 @@ static int submit_to_wirebuffer(struct http_ctx *ctx)
@@ -494,14 +544,17 @@ static int on_frame_recv_callback(nghttp2_session *h2, const nghttp2_frame *fram
@@ -584,7 +637,9 @@ struct http_ctx* http_new(struct session *session, http_send_callback send_cb)
@@ -603,9 +658,12 @@ struct http_ctx* http_new(struct session *session, http_send_callback send_cb)
@@ -622,6 +680,7 @@ ssize_t http_process_input_data(struct session *session, const uint8_t *buf,
@@ -640,7 +699,18 @@ ssize_t http_process_input_data(struct session *session, const uint8_t *buf,
@@ -670,36 +740,67 @@ static ssize_t read_callback(nghttp2_session *h2, int32_t stream_id, uint8_t *bu
@@ -733,6 +834,24 @@ static int http_send_response(struct http_ctx *ctx, int32_t stream_id,
@@ -761,7 +880,7 @@ static int http_write_pkt(struct http_ctx *ctx, knot_pkt_t *pkt, int32_t stream_