Django响应
2017-12-19 08:57:19 6 举报
Django Response UML
作者其他创作
大纲/内容
django.http.response::StreamingHttpResponse
stream = True
django.http.response::HttpResponseBase
django.http.response::FileResponse
block_size = 4096
django.template.response::SimpleTemplateResponse
self.templte_nameself.context_dataself.usingself._post_render_callbacks = []self._request = None
django.http.response::JsonResponse
django.http.response::HttpResponse
如果response对象有render属性(比如rest_framework.respone::Response),则在处理完view,生成response对象后,调用对象render方法。参考代码:django.core.handlers.base::BaseHandler
django.template.response::TemplateResponse
django.http.response::HttpResponeNotFound
wsgiref.util::FileWrapper
self.filelike = finlikeself.blksize = blksizeself.close = filelike.close
django.http.response::HttpResponeForbidden
rest_framework.respnse::Response
self.dataself.template_nameself.exceptionself.content_type
render_content(self)status_text(self)__getstate__(self)
django.http.response::HttpReponseBadRequest
six.Iterator
next(self)
0 条评论
下一页