Skip to content
Myr

Remove data, json and files parameters in delete() function (#408)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Jt Miclat · committed by Seth Michael Larson · parent 640667d · Browse files · 3 files+2 added−20 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+2 added−20 removed

  • other:+2 added−20 removed

3 files+2 added−20 removed

modified:docs/api.md+2 added-2 removed
modified:httpx/api.py-6 removed
261 unmodified lines
262 url: URLTypes,263 *,264 data: RequestData = None,265 files: RequestFiles = None,266 json: typing.Any = None,267 params: QueryParamTypes = None,268 headers: HeaderTypes = None,266 cookies: CookieTypes = None,267 stream: bool = False,268 auth: AuthTypes = None,269 allow_redirects: bool = True,
5 unmodified lines
275) -> Response:276 return request(277 "DELETE",278 url,282 data=data,283 files=files,284 json=json,279 params=params,280 headers=headers,281 cookies=cookies,282 stream=stream,
7 unmodified lines
modified:httpx/client.py-12 removed
539 unmodified lines
540 async def delete(541 self,542 url: URLTypes,543 *,544 data: AsyncRequestData = None,545 files: RequestFiles = None,546 json: typing.Any = None,544 params: QueryParamTypes = None,545 headers: HeaderTypes = None,546 cookies: CookieTypes = None,547 stream: bool = False,
6 unmodified lines
554 ) -> AsyncResponse:555 return await self.request(556 "DELETE",557 url,561 data=data,562 files=files,563 json=json,558 params=params,559 headers=headers,560 cookies=cookies,561 stream=stream,
423 unmodified lines
985 def delete(986 self,987 url: URLTypes,988 *,995 data: RequestData = None,996 files: RequestFiles = None,997 json: typing.Any = None,989 params: QueryParamTypes = None,990 headers: HeaderTypes = None,991 cookies: CookieTypes = None,992 stream: bool = False,
6 unmodified lines
999 ) -> Response:1000 return self.request(1001 "DELETE",1002 url,1012 data=data,1013 files=files,1014 json=json,1003 params=params,1004 headers=headers,1005 cookies=cookies,1006 stream=stream,
64 unmodified lines