Attention

This is the documentation for HARP Proxy, actually published as an early preview. Both the software and documentation are a work in progress, and although we already use it on various production servers, they may contain inaccuracies, typographical errors, huge mistakes and empty pages. We work hard to eradicate all mistakes and implement stuff, but it is a long and tedious process. We appreciate your patience and understanding. Of course, any help will be greatly appreciated.

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