0
点赞
收藏
分享

微信扫一扫

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

天悦哥 2024-02-03 阅读 19

一、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 条评论