Lines Matching full:headers
67 def request_login(self, headers, url, credential, timeout=10): argument
72 headers By default headers is assigned as application/json.
73 If user assign the headers,
74 then default headers is not considered.
86 if headers == "None":
87 headers = dict()
88 headers["Content-Type"] = "application/json"
101 self, headers=headers, url=url, data=credential
106 def request_get(self, headers, url, timeout=10, verify=False): argument
111 headers By default headers is assigned as application/json.
112 If user assign the headers, then default headers is not
125 if headers.get("Content-Type", None) is None:
126 headers["Content-Type"] = "application/json"
132 "Request Method : GET ,headers = "
133 + json.dumps(headers)
144 url, headers=headers, timeout=timeout, verify=verify
150 def request_patch(self, headers, url, data=None, timeout=10, verify=False): argument
155 headers By default headers is assigned as application/json.
156 If user assign the headers, then default headers is not
172 if headers.get("Content-Type", None) is None:
173 headers["Content-Type"] = "application/json"
179 "Request Method : PATCH ,headers = "
180 + json.dumps(headers)
193 url, headers=headers, data=data, timeout=timeout, verify=verify
199 def request_post(self, headers, url, data=None, timeout=10, verify=False): argument
204 headers By default headers is assigned as application/json.
205 If user assign the headers, then default headers is not
221 if headers.get("Content-Type", None) is None:
222 headers["Content-Type"] = "application/json"
228 "Request Method : POST ,headers = "
229 + json.dumps(headers)
243 headers=headers,
253 self, headers, url, files=None, data=None, timeout=10, verify=False argument
259 headers By default headers is assigned as application/json.
260 If user assign the headers, then default headers is not
279 if headers.get("Content-Type", None) is None:
280 headers["Content-Type"] = "application/json"
286 "Request Method : PUT ,headers = "
287 + json.dumps(headers)
301 headers=headers,
312 self, headers, url, data=None, timeout=10, verify=False argument
318 headers By default headers is assigned as application/json.
319 If user pass the headers then default header is not
335 if headers.get("Content-Type", None) is None:
336 headers["Content-Type"] = "application/json"
342 "Request Method : DELETE ,headers = "
343 + json.dumps(headers)
356 url, headers=headers, data=data, timeout=timeout, verify=verify