[][src]Function libnghttp2_sys::nghttp2_session_get_stream_effective_recv_data_length

pub unsafe extern "C" fn nghttp2_session_get_stream_effective_recv_data_length(
    session: *mut nghttp2_session,
    stream_id: i32
) -> i32

@function

Returns the number of DATA payload in bytes received without WINDOW_UPDATE transmission for the stream |stream_id|. The local (receive) window size can be adjusted by nghttp2_submit_window_update(). This function takes into account that and returns effective data length. In particular, if the local window size is reduced by submitting negative window_size_increment with nghttp2_submit_window_update(), this function returns the number of bytes less than actually received.

This function returns -1 if it fails.