Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

httpsession: prep work for supporting fetches other than next #48065

Merged
merged 1 commit into from
Sep 6, 2024

Conversation

jkarneges
Copy link
Member

@jkarneges jkarneges commented Sep 5, 2024

This reworks the next link handling in HttpSession to make it reusable for other things in the future. It should not introduce any change in behavior. Some if(state == Proxying) conditionals are added in places where state is known/assumed to already be of that value.

@@ -1232,114 +1242,121 @@ class HttpSession::Private : public QObject
return;
}

if(outReq->bytesAvailable() > 0)
if(state == Proxying)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this section is simply an indentation (and assertion of the state value)

// apply ProxyContent filters of all channels
QStringList allFilters;
foreach(const Instruct::Channel &c, instruct.channels)
if(state == Proxying)
Copy link
Member Author

@jkarneges jkarneges Sep 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

another indentation based on state value


log_debug("httpsession: failed to retrieve next link");
if(state == Proxying)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

another indentation based on state value

Copy link
Collaborator

@deg4uss3r deg4uss3r left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The moves in here look good to me, and pretty easily traceable, thanks Justin!

@jkarneges jkarneges merged commit 83f84b4 into main Sep 6, 2024
19 checks passed
@jkarneges jkarneges deleted the jkarneges/fetch-prep branch September 6, 2024 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants