kottpd
kottpd copied to clipboard
[FEATURE] Stream Prioritization for HTTP2
Feature Description
Support stream prioritization using weights and dependency tree as defined in HTTP2.
Problem/Use Case
Allows clients to specify which streams are more important, optimizing resource usage and response times.
Proposed Solution
- Implement PRIORITY frames
- Support weight and dependency assignment for streams
- Make prioritization advisory but respected when possible
Code Example
server.setStreamPriority(streamId = 1, weight = 220, dependsOn = 3)
Alternatives Considered
- No prioritization; FIFO processing
Additional Context
- Would this be a breaking change? No
- Priority: Medium
- Related to #3 HTTP2 support
Related Issues/PRs
- #3 HTTP2 support