MCPcopy
hub / github.com/django/django / put

Method put

django/test/client.py:561–583  ·  view source on GitHub ↗

Construct a PUT request.

(
        self,
        path,
        data="",
        content_type="application/octet-stream",
        secure=False,
        *,
        headers=None,
        query_params=None,
        **extra,
    )

Source from the content-addressed store, hash-verified

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,

Callers

nothing calls this directly

Calls 2

_encode_jsonMethod · 0.95
genericMethod · 0.95

Tested by

no test coverage detected