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

Add didVisitURL delegate method #816

Merged

Conversation

gregcotten
Copy link
Contributor

Trying to pave the way for closing #790 with some direction from @Lukasa.

I have no idea where is best to insert this new delegate method. I'm currently doing it first thing in receiveResponseHead0, and not using an EventLoopFuture for back pressure management. The state machine seems pretty fragile and I don't want to leave too much of an imprint. Trying to be a part of an EventLoopFuture chain seems really complicated and would really leave a mark on the codebase, so I'm wondering if it's possible to just warn the user "do not block"?

Anyway, just a jumping-off point and happy to take direction!

@Lukasa
Copy link
Collaborator

Lukasa commented Feb 20, 2025

So this is a totally fine place to begin, if we want to begin here. I think it's entirely acceptable to do the smallest possible work item to make something possible, and this would definitely meet that bar. So if you're happy with this approach, I think I say "let's do it".

@gregcotten
Copy link
Contributor Author

OK, @Lukasa, I think it's ready to go.

@Lukasa Lukasa added the 🆕 semver/minor Adds new public API. label Feb 21, 2025
Copy link
Collaborator

@Lukasa Lukasa left a comment

Choose a reason for hiding this comment

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

This LGTM, let's start with this.

@Lukasa Lukasa enabled auto-merge (squash) February 21, 2025 08:26
@Lukasa Lukasa merged commit da621ce into swift-server:main Feb 21, 2025
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🆕 semver/minor Adds new public API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants