Construct a PUT request.
(
self,
path,
data="",
content_type="application/octet-stream",
secure=False,
*,
headers=None,
query_params=None,
**extra,
)
| 559 | ) |
| 560 | |
| 561 | def put( |
| 562 | self, |
| 563 | path, |
| 564 | data="", |
| 565 | content_type="application/octet-stream", |
| 566 | secure=False, |
| 567 | *, |
| 568 | headers=None, |
| 569 | query_params=None, |
| 570 | **extra, |
| 571 | ): |
| 572 | """Construct a PUT request.""" |
| 573 | data = self._encode_json(data, content_type) |
| 574 | return self.generic( |
| 575 | "PUT", |
| 576 | path, |
| 577 | data, |
| 578 | content_type, |
| 579 | secure=secure, |
| 580 | headers=headers, |
| 581 | query_params=query_params, |
| 582 | **extra, |
| 583 | ) |
| 584 | |
| 585 | def patch( |
| 586 | self, |
nothing calls this directly
no test coverage detected