压力测试工具-Jmeter使用总结

天悦哥

关注

阅读 19

2024-02-03

一、HttpResponse与JsonResponse

image-20221016211540068

1.1、HttpResponse

官网:https://docs.djangoproject.com/zh-hans/4.1/ref/request-response/#django.http.HttpResponse

返回给浏览器端的响应对象

from django.http import HttpResponse
response = HttpResponse("Here's the text of the web page.")
response = HttpResponse("Text only, please.", content_type="text/plain")
response = HttpResponse(b'Bytestrings are also accepted.')

属性

    精彩评论(0)

    0 0 举报