HTTP Response Backends#
Do not construct this object directly, instead access the
http_response_backends
property of an ngrok.Client
object.
- class ngrok.services.HTTPResponseBackendsClient(client)[source]#
- create(description='', metadata='', body='', headers={}, status_code=None)[source]#
- Parameters:
description (
str
) – human-readable description of this backend. Optionalmetadata (
str
) – arbitrary user-defined machine-readable data of this backend. Optionalbody (
str
) – body to return as fixed contentheaders (
Mapping
[str
,str
]) – headers to returnstatus_code (
int
) – status code to return
https://ngrok.com/docs/api#api-http-response-backends-create
- Return type:
- delete(id)[source]#
- Parameters:
id (
str
) – a resource identifier
https://ngrok.com/docs/api#api-http-response-backends-delete
- get(id)[source]#
- Parameters:
id (
str
) – a resource identifier
https://ngrok.com/docs/api#api-http-response-backends-get
- Return type:
- list(before_id=None, limit=None)[source]#
- Parameters:
before_id (
str
) –limit (
str
) –
https://ngrok.com/docs/api#api-http-response-backends-list
- Return type:
- update(id, description=None, metadata=None, body=None, headers=None, status_code=None)[source]#
- Parameters:
id (
str
) –description (
str
) – human-readable description of this backend. Optionalmetadata (
str
) – arbitrary user-defined machine-readable data of this backend. Optionalbody (
str
) – body to return as fixed contentheaders (
Mapping
[str
,str
]) – headers to returnstatus_code (
int
) – status code to return
https://ngrok.com/docs/api#api-http-response-backends-update
- Return type: