MCPcopy Index your code
hub / github.com/encode/django-rest-framework / generic

Method generic

rest_framework/test.py:215–222  ·  view source on GitHub ↗
(self, method, path, data='',
                content_type='application/octet-stream', secure=False, **extra)

Source from the content-addressed store, hash-verified

213 return self.generic('OPTIONS', path, data, content_type, **extra)
214
215 def generic(self, method, path, data='',
216 content_type='application/octet-stream', secure=False, **extra):
217 # Include the CONTENT_TYPE, regardless of whether or not data is empty.
218 if content_type is not None:
219 extra['CONTENT_TYPE'] = str(content_type)
220
221 return super().generic(
222 method, path, data, content_type, secure, **extra)
223
224 def request(self, **kwargs):
225 request = super().request(**kwargs)

Callers 9

getMethod · 0.95
postMethod · 0.95
putMethod · 0.95
patchMethod · 0.95
deleteMethod · 0.95
optionsMethod · 0.95
get_environMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected