Skip to content

HTTP/2 with httpx backend #1366

@jakkdl

Description

@jakkdl

aiohttp does not support http/2, and has no immediate plans to: aio-libs/aiohttp#320 aio-libs/aiohttp#863

likewise moto does not have plans to, as werkzeug does not support it: getmoto/moto#8904

But AWS does support it, as does httpx, so aibotocore should be able to when running with httpx as the backend. For tests it should be possible to run a local proxy server such as nginx or nghttpx to translate requests from http/2 before they're forwarded to moto.

I struggled to make progress with this in #1085, but @thehesiod noted

it's critical when using http/2 w/ httpx to not have it pre-populate the Connection header when creating the Client

in #1085 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions