Thanks to visit codestin.com
Credit goes to github.com

Skip to content

session.http: refactor HTTP session options#6795

Merged
bastimeyer merged 5 commits into
streamlink:masterfrom
bastimeyer:session/refactor-http-options
Jan 26, 2026
Merged

session.http: refactor HTTP session options#6795
bastimeyer merged 5 commits into
streamlink:masterfrom
bastimeyer:session/refactor-http-options

Conversation

@bastimeyer

Copy link
Copy Markdown
Member

HTTPSession options that require special logic should not be set by the StreamlinkOptions class. This PR therefore moves the logic into new HTTPSession class methods where it actually belongs and also fixes two minor things: lost network interface information when disabling DH key exchange (since a new HTTPS adapter will be mounted) and slightly broken unset logic for the ipv4/ipv6 session options (which is irrelevant for the CLI, as it can only set).

This branch is meant as a preparation for #6792, which will be rebased after merging to master, as that work also adds a new class method for loading cookies from a file. These issues here were noticed while working on #6792.

@bastimeyer bastimeyer changed the title session.http: refactor interface session option session.http: refactor HTTP session options Jan 26, 2026
@bastimeyer bastimeyer merged commit c4cb548 into streamlink:master Jan 26, 2026
25 checks passed
@bastimeyer bastimeyer deleted the session/refactor-http-options branch January 26, 2026 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant