You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A-networkC-assignedThere is someone working on resolving the issueE-less-complexStraightforward. Recommended for a new contributor.I-refactorNo impact; the issue is one of maintainability or tidiness. Proposed solution requires refactoring.
We pass around stuff like the cookie storage, the HSTS list, the HTTP authentication cache, etc. in http_loader.rs. This also means that the unit tests have a lot of repeated initialization code that creates these objects even when they're not used. I propose we wrap them up in a struct and give it a argument-less constructor to make reading the code easier and require fewer changes when adding additional global HTTP state.
A-networkC-assignedThere is someone working on resolving the issueE-less-complexStraightforward. Recommended for a new contributor.I-refactorNo impact; the issue is one of maintainability or tidiness. Proposed solution requires refactoring.
Activity
notriddle commentedon Mar 24, 2016
You would still be passing around that one object, right?
jdm commentedon Mar 24, 2016
Yes.
cbrewster commentedon Mar 24, 2016
Should this state object include things like
LoadData, or only things that can be initialized without any parameters?ex.
LoadDatais setup in a test like:jdm commentedon Mar 24, 2016
LoadData is a per-request object, so it would not be included.
cbrewster commentedon Mar 24, 2016
@jdm ok makes sense, currently I have:
included in the http global state object, should anything else be included/excluded?
Auto merge of #10188 - ConnorGBrewster:http-global-state, r=jdm
cbrewster commentedon Mar 26, 2016
Issue resolved in PR #10188.