Lines Matching defs:session
373 error = nghttp2_submit_data(client->session, NGHTTP2_FLAG_END_STREAM,
379 nghttp2_submit_rst_stream(client->session, NGHTTP2_FLAG_NONE,
524 stream_id = nghttp2_submit_headers(client->session, 0, -1, &req->pri_spec,
528 nghttp2_submit_request(client->session, &req->pri_spec, nva.data(),
590 nghttp2_session_terminate_session(client->session, NGHTTP2_SETTINGS_TIMEOUT);
599 session(nullptr),
772 nghttp2_session_del(session);
773 session = nullptr;
1153 rv = nghttp2_session_client_new2(&session, callbacks, this,
1169 rv = nghttp2_session_upgrade2(session, settings_payload.data(),
1184 // session object.
1188 rv = nghttp2_submit_settings(session, NGHTTP2_FLAG_NONE, iv.data(), niv);
1200 rv = nghttp2_submit_priority(session, NGHTTP2_FLAG_NONE, anchor.stream_id,
1208 session, anchors[ANCHOR_FOLLOWERS].stream_id + 2);
1220 rv = nghttp2_submit_priority(session, NGHTTP2_FLAG_NONE, 1, &pri_spec);
1233 rv = nghttp2_submit_priority(session, NGHTTP2_FLAG_NONE, 1, &pri_spec);
1243 rv = nghttp2_session_set_local_window_size(session, NGHTTP2_FLAG_NONE, 0,
1268 auto rv = nghttp2_session_mem_recv(session, data, len);
1277 if (nghttp2_session_want_read(session) == 0 &&
1278 nghttp2_session_want_write(session) == 0 && wb.rleft() == 0) {
1294 auto len = nghttp2_session_mem_send(session, &data);
1308 if (nghttp2_session_want_read(session) == 0 &&
1309 nghttp2_session_want_write(session) == 0 && wb.rleft() == 0) {
1731 int on_data_chunk_recv_callback(nghttp2_session *session, uint8_t flags,
1736 nghttp2_session_get_stream_user_data(session, stream_id));
1743 verbose_on_data_chunk_recv_callback(session, flags, stream_id, data, len,
1758 nghttp2_submit_rst_stream(session, NGHTTP2_FLAG_NONE, stream_id,
1786 ssize_t select_padding_callback(nghttp2_session *session,
1794 void check_response_header(nghttp2_session *session, Request *req) {
1802 nghttp2_submit_rst_stream(session, NGHTTP2_FLAG_NONE, req->stream_id,
1809 nghttp2_submit_rst_stream(session, NGHTTP2_FLAG_NONE, req->stream_id,
1854 int on_begin_headers_callback(nghttp2_session *session,
1860 nghttp2_session_get_stream_user_data(session, frame->hd.stream_id));
1887 nghttp2_session_set_stream_user_data(session, stream_id, req.get());
1901 int on_header_callback(nghttp2_session *session, const nghttp2_frame *frame,
1906 verbose_on_header_callback(session, frame, name, namelen, value, valuelen,
1913 nghttp2_session_get_stream_user_data(session, frame->hd.stream_id));
1926 nghttp2_submit_rst_stream(session, NGHTTP2_FLAG_NONE, frame->hd.stream_id,
1942 session, frame->push_promise.promised_stream_id));
1949 nghttp2_submit_rst_stream(session, NGHTTP2_FLAG_NONE,
1970 int on_frame_recv_callback2(nghttp2_session *session,
1975 verbose_on_frame_recv_callback(session, frame, user_data);
1982 nghttp2_session_get_stream_user_data(session, frame->hd.stream_id));
1997 nghttp2_session_get_stream_user_data(session, frame->hd.stream_id));
2008 check_response_header(session, req);
2012 check_response_header(session, req);
2016 nghttp2_submit_rst_stream(session, NGHTTP2_FLAG_NONE,
2040 session, frame->push_promise.promised_stream_id));
2059 nghttp2_submit_rst_stream(session, NGHTTP2_FLAG_NONE,
2070 nghttp2_submit_rst_stream(session, NGHTTP2_FLAG_NONE,
2079 nghttp2_submit_rst_stream(session, NGHTTP2_FLAG_NONE,
2097 int before_frame_send_callback(nghttp2_session *session,
2104 nghttp2_session_get_stream_user_data(session, frame->hd.stream_id));
2113 int on_frame_send_callback(nghttp2_session *session, const nghttp2_frame *frame,
2116 verbose_on_frame_send_callback(session, frame, user_data);
2125 nghttp2_session_get_stream_user_data(session, frame->hd.stream_id));
2140 int on_frame_not_send_callback(nghttp2_session *session,
2149 nghttp2_session_get_stream_user_data(session, frame->hd.stream_id));
2162 int on_stream_close_callback(nghttp2_session *session, int32_t stream_id,
2166 nghttp2_session_get_stream_user_data(session, stream_id));
2181 nghttp2_session_terminate_session(session, NGHTTP2_NO_ERROR);
2441 ssize_t file_read_callback(nghttp2_session *session, int32_t stream_id,
2446 nghttp2_session_get_stream_user_data(session, stream_id));
2469 rv = nghttp2_submit_trailer(session, stream_id, nva.data(), nva.size());