[][src]Function libnghttp2_sys::nghttp2_priority_spec_init

pub unsafe extern "C" fn nghttp2_priority_spec_init(
    pri_spec: *mut nghttp2_priority_spec,
    stream_id: i32,
    weight: i32,
    exclusive: c_int
)

@function

Initializes |pri_spec| with the |stream_id| of the stream to depend on with |weight| and its exclusive flag. If |exclusive| is nonzero, exclusive flag is set.

The |weight| must be in [:enum:NGHTTP2_MIN_WEIGHT, :enum:NGHTTP2_MAX_WEIGHT], inclusive.