Lines Matching refs:stream_id

37  * itself.  If |stream_id| is -1, we use session->next_stream_id as
46 static int detect_self_dependency(nghttp2_session *session, int32_t stream_id,
50 if (stream_id == -1) {
51 if ((int32_t)session->next_stream_id == pri_spec->stream_id) {
57 if (stream_id == pri_spec->stream_id) {
68 int32_t stream_id,
100 if (stream_id == -1) {
106 stream_id = (int32_t)session->next_stream_id;
117 nghttp2_frame_headers_init(&frame->headers, flags_copy, stream_id, hcat,
128 return stream_id;
143 uint8_t flags, int32_t stream_id,
167 return submit_headers_shared(session, flags, stream_id, &copy_pri_spec,
171 int nghttp2_submit_trailer(nghttp2_session *session, int32_t stream_id,
173 if (stream_id <= 0) {
178 stream_id, NULL, nva, nvlen, NULL,
183 int32_t stream_id,
189 if (stream_id == -1) {
193 } else if (stream_id <= 0) {
201 rv = detect_self_dependency(session, stream_id, pri_spec);
211 return submit_headers_shared_nva(session, flags, stream_id, pri_spec, nva,
222 int32_t stream_id,
237 if (stream_id == 0 || pri_spec == NULL) {
241 if (stream_id == pri_spec->stream_id) {
259 nghttp2_frame_priority_init(&frame->priority, stream_id, &copy_pri_spec);
274 int32_t stream_id, uint32_t error_code) {
277 if (stream_id == 0) {
281 return nghttp2_session_add_rst_stream(session, stream_id, error_code);
316 int32_t stream_id, const nghttp2_nv *nva,
330 if (stream_id <= 0 || nghttp2_session_is_my_stream_id(session, stream_id)) {
365 nghttp2_frame_push_promise_init(&frame->push_promise, flags_copy, stream_id,
381 int32_t stream_id,
390 if (stream_id == 0) {
398 stream = nghttp2_session_get_stream(session, stream_id);
412 if (stream_id == 0) {
420 return nghttp2_session_add_window_update(session, 0, stream_id,
427 uint8_t flags, int32_t stream_id,
438 if (stream_id == 0) {
460 return nghttp2_session_add_window_update(session, 0, stream_id,
466 stream = nghttp2_session_get_stream(session, stream_id);
493 return nghttp2_session_add_window_update(session, 0, stream_id,
503 int32_t stream_id, const uint8_t *origin,
526 if (stream_id == 0) {
568 nghttp2_frame_altsvc_init(&frame->ext, stream_id, origin_copy, origin_len,
671 int32_t stream_id,
692 if (stream_id == 0 || 4 + field_value_len > NGHTTP2_MAX_PAYLOADLEN) {
723 nghttp2_frame_priority_update_init(&frame->ext, stream_id, buf,
792 int nghttp2_submit_response(nghttp2_session *session, int32_t stream_id,
797 if (stream_id <= 0) {
806 return submit_headers_shared_nva(session, flags, stream_id, NULL, nva, nvlen,
811 int32_t stream_id,
822 if (stream_id == 0) {
840 nghttp2_frame_data_init(&frame->data, NGHTTP2_FLAG_NONE, stream_id);
866 uint8_t flags, int32_t stream_id, void *payload) {
890 nghttp2_frame_extension_init(&frame->ext, type, flags, stream_id, payload);