Skip to content

Added HttpxAsyncClient wrapper for httpx.AsyncClient and support for send_each_for_multicast_async() #878

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

Open
wants to merge 16 commits into
base: fcm-http2
Choose a base branch
from

Conversation

jonathanedey
Copy link
Contributor

This PR covers:

  • Adding a HttpxAsyncClient to wrap httpx.AsyncClient
  • Moving GoogleAuthCredentialFlow to _http_client
  • A fix in GoogleAuthCredentialFlow to correctly force a credential refresh
  • Adding support for send_each_for_multicast_async()
  • Adding unit tests for GoogleAuthCredentialFlow and HttpxAsyncClient
  • Adding integration tests for send_each_for_multicast_async()
  • Updating doc strings

@jonathanedey jonathanedey added the release:stage Stage a release candidate label May 22, 2025
Copy link
Member

@lahirumaramba lahirumaramba left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks!
Added a few comments on the extra new lines

from __future__ import annotations
import logging
from typing import Any, Dict, Generator, Optional, Tuple, Union
import httpx
Copy link
Member

Choose a reason for hiding this comment

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

Note: let's make sure we add the new dependency to setup.py

@@ -153,3 +165,197 @@ def __init__(self, **kwargs):

def parse_body(self, resp):
return resp.json()


Copy link
Member

Choose a reason for hiding this comment

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

super nit: is this an extra new line?

# The last yielded response is automatically returned by httpx's auth flow.



Copy link
Member

Choose a reason for hiding this comment

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

nit: let's double check these extra new lines

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:stage Stage a release candidate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants