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

http proxy for RPC callers #16

Open
zerlok opened this issue Dec 5, 2024 · 0 comments
Open

http proxy for RPC callers #16

zerlok opened this issue Dec 5, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@zerlok
Copy link
Owner

zerlok commented Dec 5, 2024

  • allow http clients to use brokrpc callers without knowing about broker
  • http proxy will transform http request to RPC caller request and RPC caller response to http final response

example of http proxy handler

async def handle_my_rpc_call(request: MyRequestModel, caller: Caller[MyRequest, MyResponse] = Depends(get_my_rpc_caller)) -> MyResponseModel:
    response = await caller.invoke(_build_caller_request(request))
    return _build_my_response(response)
@zerlok zerlok added the enhancement New feature or request label Dec 5, 2024
@zerlok zerlok added this to BrokRPC Dec 5, 2024
@zerlok zerlok moved this to Backlog in BrokRPC Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Backlog
Development

No branches or pull requests

1 participant