harp.http.utils.methods

Inheritance diagram of harp.http.utils.methods

class HttpMethod[source]

Bases: object

HttpMethod(*, request_body: bool, response_body: Union[bool, Maybe], safe: bool, idempotent: bool, cacheable: Union[bool, Maybe], allowed_in_forms: bool, description: str = None, link: str = None)

__init__(*, request_body, response_body, safe, idempotent, cacheable, allowed_in_forms, description=None, link=None)
Parameters:
  • request_body (bool)

  • response_body (bool | Maybe)

  • safe (bool)

  • idempotent (bool)

  • cacheable (bool | Maybe)

  • allowed_in_forms (bool)

  • description (str)

  • link (str)

Return type:

None

allowed_in_forms: bool
cacheable: bool | Maybe
description: str = None
idempotent: bool
request_body: bool
response_body: bool | Maybe
safe: bool