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

feat(volo-http): refactor HttpContext with RpcCx #333

Merged
merged 2 commits into from
Jan 22, 2024

Conversation

yukiiiteru
Copy link
Member

This PR deletes the original HttpContext and creates a new type ServerContext using RpcCx. The current HttpContext is just an alias of ServerContext.

Because HttpContext is an alias of ServerContext, and ServerContext, RpcCx, ServerCxInner all implement Deref + DerefMut, no breaking changes are expected.

This commit deletes the original `HttpContext` and creates a new type
`ServerContext` using `RpcCx`. The current `HttpContext` is just an
alias of `ServerContext`.

Because `ServerContext`, `RpcCx`, `ServerCxInner` all implement
`Deref` and `DerefMut`, no breaking changes are expected.

Please note that `HttpContext` may be removed in the future, so it is
recommended to use `ServerContext`.

Signed-off-by: Yu Li <liyu.yukiteru@bytedance.com>
Note that `HttpContext` is an alias of `ServerContext`, so there is
no breaking change.

Signed-off-by: Yu Li <liyu.yukiteru@bytedance.com>
@yukiiiteru yukiiiteru requested review from a team as code owners January 21, 2024 08:37
@yukiiiteru yukiiiteru merged commit 90aca21 into cloudwego:main Jan 22, 2024
17 checks passed
@yukiiiteru yukiiiteru deleted the feat/server-context branch January 22, 2024 03:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants