Skip to content

Commit 1d14e0a

Browse files
authored
Add connection function (#715)
1 parent 510988b commit 1d14e0a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

include/cinatra/coro_http_connection.hpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ class coro_http_connection
406406
}
407407
}
408408

409-
if(head_buf_.size()) {
409+
if (head_buf_.size()) {
410410
head_buf_.consume(head_buf_.size());
411411
}
412412
}
@@ -886,6 +886,10 @@ class coro_http_connection
886886
});
887887
}
888888

889+
uint64_t conn_id() const { return conn_id_; }
890+
891+
bool has_closed() const { return has_closed_; }
892+
889893
void set_check_timeout(bool r) { checkout_timeout_ = r; }
890894

891895
void handle_session_for_response() {

0 commit comments

Comments
 (0)