HTTP Client Services¶
The services defined by the http_client
application are listed below, and will vary depending on settings.
When cache is enabled¶
When the cache is enabled, the following services are available:
http_client:
cache:
enabled: true
Final class for a service collection. Iterate on it to get a flattened (one level) and merged (services with same name that allows overrides are merged together) list of services.
- service http_client httpx.AsyncClient ¶
Base:
None
- transport: LazyServiceReference = LazyServiceReference('http_client.cache.transport')¶
- service http_client.cache.controller hishel.Controller ¶
Base:
None
- service http_client.cache.storage harp_apps.http_client.contrib.hishel.storages.AsyncStorage ¶
Base:
hishel.AsyncBaseStorage
- storage: LazyServiceReference = LazyServiceReference(['storage.blobs', 'http_client.fallback_blob_storage'])¶
- service http_client.cache.transport hishel.AsyncCacheTransport ¶
Base:
None
- transport: LazyServiceReference = LazyServiceReference('http_client.proxy_transport')¶
- storage: LazyServiceReference = LazyServiceReference('http_client.cache.storage')¶
- controller: LazyServiceReference = LazyServiceReference('http_client.cache.controller')¶
- service http_client.fallback_blob_storage harp_apps.storage.services.blob_storages.memory.MemoryBlobStorage ¶
Base:
None
- service http_client.proxy_transport harp_apps.http_client.transport.AsyncFilterableTransport ¶
Base:
None
- transport: LazyServiceReference = LazyServiceReference('http_client.transport')¶
- service http_client.transport httpx.AsyncHTTPTransport ¶
Base:
None
When cache is disabled¶
When the cache is disabled, the following services are available:
http_client:
cache:
enabled: false
Final class for a service collection. Iterate on it to get a flattened (one level) and merged (services with same name that allows overrides are merged together) list of services.
- service http_client httpx.AsyncClient ¶
Base:
None
- transport: LazyServiceReference = LazyServiceReference('http_client.proxy_transport')¶
- service http_client.proxy_transport harp_apps.http_client.transport.AsyncFilterableTransport ¶
Base:
None
- transport: LazyServiceReference = LazyServiceReference('http_client.transport')¶
- service http_client.transport httpx.AsyncHTTPTransport ¶
Base:
None