0002-misc-add-an-http_delete_request-helper-function-9210.patch
wcs/qommon/misc.py | ||
---|---|---|
278 | 278 |
def http_post_request(url, body=None, headers={}, timeout=None): |
279 | 279 |
return _http_request(url, 'POST', body, headers, timeout=timeout) |
280 | 280 | |
281 |
def http_delete_request(url, headers={}, timeout=None): |
|
282 |
return _http_request(url, 'DELETE', None, headers, timeout=timeout) |
|
283 | ||
281 | 284 |
def get_variadic_url(url, variables, encode_query=True): |
282 | 285 |
# substitution in an URL : try to be safe |
283 | 286 | |
284 |
- |