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 Request class to represent outgoing HTTP request message #480

Merged
merged 1 commit into from
Nov 24, 2022

Conversation

clue
Copy link
Member

@clue clue commented Nov 23, 2022

This changeset adds a Request class to represent an outgoing HTTP request message. This class implements the PSR-7 RequestInterface which extends the PSR-7 MessageInterface. It is mostly used internally to represent each outgoing HTTP request message for the HTTP client implementation. Likewise, you can also use this class with other HTTP client implementations and for tests.

This class complements our other PSR-7 implementations (#370 and others) and is one step further towards moving away from the RingCentral implementations as discussed in #331/#437. On top of this, this PR is done in preparation for HTTP keep-alive support as discussed in #468/#39. Once this PR is merged, I'll file the next follow-up PRs to reuse this class for our outgoing request messages much like already done for the incoming response messages as per #389.

@clue clue added this to the v1.9.0 milestone Nov 23, 2022
Copy link
Member

@SimonFrings SimonFrings left a comment

Choose a reason for hiding this comment

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

Looks good to me 👍

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.

3 participants