MCPcopy
hub / github.com/django/django / get

Method get

django/test/client.py:1114–1140  ·  view source on GitHub ↗

Request a response from the server using GET.

(
        self,
        path,
        data=None,
        follow=False,
        secure=False,
        *,
        headers=None,
        query_params=None,
        **extra,
    )

Source from the content-addressed store, hash-verified

1112 return response
1113
1114 def get(
1115 self,
1116 path,
1117 data=None,
1118 follow=False,
1119 secure=False,
1120 *,
1121 headers=None,
1122 query_params=None,
1123 **extra,
1124 ):
1125 """Request a response from the server using GET."""
1126 self.extra = extra
1127 self.headers = headers
1128 response = super().get(
1129 path,
1130 data=data,
1131 secure=secure,
1132 headers=headers,
1133 query_params=query_params,
1134 **extra,
1135 )
1136 if follow:
1137 response = self._handle_redirects(
1138 response, data=data, headers=headers, query_params=query_params, **extra
1139 )
1140 return response
1141
1142 def post(
1143 self,

Calls 1

_handle_redirectsMethod · 0.95