Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 656 Bytes

httpresult.md

File metadata and controls

26 lines (18 loc) · 656 Bytes

HTTPResult

Represents the result returned from the /http endpoint.

Attributes

  • code (int): The HTTP status code returned by the endpoint.

  • name (str): The standard name associated with the HTTP status code.

  • description (str): A brief explanation of the HTTP status code.

Example

result = await alex_api.http_code(200)
print(result.code)        # 200
print(result.name)        # OK
print(result.description) # Indicates that the request has succeeded.