prefect.client.base
determine_server_type
ServerType.EPHEMERAL
if the ephemeral server is enabledServerType.SERVER
if a API URL is configured and it is not a cloud URLServerType.CLOUD
if an API URL is configured and it is a cloud URLServerType.UNCONFIGURED
if no API URL is configured and ephemeral mode is
not enabledASGIApp
PrefectResponse
httpx.Response
class.
Provides more informative error messages.
Methods:
raise_for_status
PrefectHTTPStatusError
contains useful additional information that
is not contained in the HTTPStatusError
.
from_httpx_response
PrefectResponse
from an httpx.Response
.
By changing the __class__
attribute of the Response, we change the method
resolution order to look for methods defined in PrefectResponse, while leaving
everything else about the original Response instance intact.
PrefectHttpxAsyncClient
raise_for_status
on responses.
For more details on rate limit headers, see:
Configuring Cloudflare Rate Limiting
PrefectHttpxSyncClient
raise_for_status
on responses.
For more details on rate limit headers, see:
Configuring Cloudflare Rate Limiting
Methods:
send
PREFECT_CLIENT_RETRY_EXTRA_CODES
ServerType