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

SimplePie: Prepare PubSubHubbub for PSR-18 clients #838

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jtojnar
Copy link
Contributor

@jtojnar jtojnar commented May 31, 2023

Previously, this only supported File, let’s prepare for other Response implementations.

Also fixes a bug where it would clear previous links (by setting it to comma instead of appending).
And where it would add redundant rel=self link.

@@ -127,6 +127,20 @@ public function has_header(string $name): bool;
*/
public function get_header(string $name): array;

/**
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Again, not sure if we should duplicate the comments, rather than using {@inheritdoc}

@Art4 Art4 mentioned this pull request Sep 13, 2023
9 tasks
@Art4
Copy link
Contributor

Art4 commented Jan 10, 2024

@mblaney Are there any objections?

@jtojnar
Copy link
Contributor Author

jtojnar commented Jan 10, 2024

I will try to get back to SimplePie development on weekend.

@mblaney
Copy link
Member

mblaney commented Jan 13, 2024

@mblaney Are there any objections?

no this looks good to me 👍

This is similar to `Psr\Http\Message\MessageInterface::withHeader()`
but does not preserve the casing of the header.

It will be useful for storing metadata (e.g. WebSub link) in the response.
Previously, this only supported `File`, let’s prepare for other `Response` implementations.

Also fixes a bug where it would clear previous links (by setting it to comma instead of appending).
And where it would add redundant `rel=self` link.
@pull-request-size pull-request-size bot added size/L and removed size/M labels May 18, 2024
@jtojnar jtojnar marked this pull request as draft May 18, 2024 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants