Projet

Général

Profil

0002-misc-add-an-http_delete_request-helper-function-9210.patch

Benjamin Dauvergne, 05 décembre 2015 23:51

Télécharger (898 octets)

Voir les différences:

Subject: [PATCH 2/3] misc: add an http_delete_request helper function (#9210)

 wcs/qommon/misc.py | 3 +++
 1 file changed, 3 insertions(+)
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
-