The simplest possible view returns an HttpResponse object initialized with a string.
最简单的视图可能会返回一个使用字符串初始化过的HttpResponse对象。
The rendered template string is then passed into an HTTPResponse constructor, which is sent back to the request client via the framework.
所呈现的模板字符串随后被传递到HTTPResponse构造器中,后者通过这个框架被发送回请求客户机那里。
The render_to_response() method is a Django shortcut for rendering a template with a specific context and returns an HttpResponse object.
render_to_response()方法是一个Django快捷方式,用来呈现一个具有特定上下文的模板,它返回的是一个 HttpResponse 对象。
As in Listing 14, invoke the execute method of the HttpClient, with the HttpGet method as an argument, to retrieve the HttpResponse object.
如清单14清单14所示,调用HttpClient的execute方法,其中HttpGet方法作为参数,以检索HttpResponse对象。
As in Listing 14, invoke the execute method of the HttpClient, with the HttpGet method as an argument, to retrieve the HttpResponse object.
如清单14清单14所示,调用HttpClient的execute方法,其中HttpGet方法作为参数,以检索HttpResponse对象。
应用推荐