Skip to content

[FEAT] Stop wrapping aiohttp #59

@AmaseCocoa

Description

@AmaseCocoa

Repository Check

  • I have verified this is the correct repository for this feature
  • This is NOT about HTTP signatures (should be in apsig repo)
  • This is NOT about ActivityStreams models (should be in apmodel repo)

Feature Description

src/apkit/client/asyncio/client.py:46
  /home/cocoa/vega/git-repos/fedi-libs/apkit/src/apkit/client/asyncio/client.py:46: DeprecationWarning: Inheritance class ActivityPubClient from ClientSession is discouraged
    class ActivityPubClient(aiohttp.ClientSession):

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html

Motivation

Discontinue non-recommended usage methods, improve maintainability

Proposed Solution

Replace it with libraries like httpcore (the current synchronous client approach) or use aiohttp internally without inheritance.

Alternatives Considered

No response

Additional Context

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions