Lines Matching defs:Response
12 from servlet import Request, Response
28 Response.Redirect('/apps/storage', permanent=False),
34 Response.Redirect('/extensions/storage', permanent=True),
39 Response.Redirect('https://developer.chrome.com/extensions',
43 Response.Redirect('https://developer.chrome.com/extensions',
75 response = self._Render('extensions/examples/%s' % sample_file)
76 self.assertEqual(200, response.status)
77 self.assertTrue(response.headers['Content-Type'] in (
81 response.content.ToString())
85 response = self._Render('extensions/examples/%s.zip' % sample_dir)
86 self.assertEqual(200, response.status)
87 self.assertEqual('application/zip', response.headers['Content-Type'])
91 response = self._Render('static/%s' % static_file)
92 self.assertEqual(200, response.status)
94 response.headers['Content-Type'])
96 response.content.ToString())
100 response = self._Render(html_file)
101 self.assertEqual(200, response.status)
103 response.headers.get('Content-Type'))
105 self.assertTrue(len(response.content) >
109 response = self._Render('extensions')
110 self.assertEqual(200, response.status)
112 response.content.ToString())
115 response = self._Render('apps/webview_tag')
117 response.GetRedirect())
127 response = self._Render(path)
128 self.assertEqual(200, response.status)
129 etag = response.headers.get('ETag')
133 response = self._Render(path, headers={
136 self.assertEqual(200, response.status)
137 self.assertEqual(content_type, response.headers.get('Content-Type'))
138 self.assertEqual(etag, response.headers.get('ETag'))
141 response = self._Render(path, headers={
144 self.assertEqual(304, response.status)
145 self.assertEqual('Not Modified', response.content.ToString())
146 self.assertEqual(content_type, response.headers.get('Content-Type'))
147 self.assertEqual(etag, response.headers.get('ETag'))