Lines Matching full:headers
44 headers = {}
49 headers, unused_params, query, body = model.request(
50 headers, path_params, query_params, body)
52 self.assertEqual(headers['accept'], 'application/json')
53 self.assertTrue('content-type' not in headers)
60 headers = {}
65 headers, unused_params, query, body = model.request(
66 headers, path_params, query_params, body)
68 self.assertEqual(headers['accept'], 'application/json')
69 self.assertEqual(headers['content-type'], 'application/json')
76 headers = {}
81 headers, unused_params, query, body = model.request(
82 headers, path_params, query_params, body)
84 self.assertEqual(headers['accept'], 'application/json')
85 self.assertEqual(headers['content-type'], 'application/json')
93 headers = {}
98 headers, unused_params, query, body = model.request(
99 headers, path_params, query_params, body)
101 self.assertEqual(headers['accept'], 'application/json')
102 self.assertEqual(headers['content-type'], 'application/json')
109 headers = {}
116 headers, unused_params, query, body = model.request(
117 headers, path_params, query_params, body)
119 self.assertEqual(headers['accept'], 'application/json')
120 self.assertEqual(headers['content-type'], 'application/json')
137 headers = {'user-agent': 'my-test-app/1.23.4'}
142 headers, unused_params, unused_query, body = model.request(
143 headers, path_params, query_params, body)
145 self.assertEqual(headers['user-agent'],
241 '-headers-start-'])