Lines Matching refs:headers
70 public void verifyFailure(Map<String, String> headers) {
74 "http://localhost:8080/test1", "GET", headers, null,
90 Map<String, String> headers = Maps.newHashMap();
91 headers.put(null, null);
92 verifyFailure(headers);
102 Map<String, String> headers = Maps.newHashMap();
103 headers.put("TestHeader", null);
104 verifyFailure(headers);
114 Map<String, String> headers = Maps.newHashMap();
115 headers.put("TestHeader", "");
116 verifyFailure(headers);
120 public void verifySuccess(Map<String, String> headers) {
123 "http://localhost:8080/test1", "GET", headers, null,
134 Map<String, String> headers = Maps.newHashMap();
135 headers.put("TestHeader", "RequestAddHeader");
136 verifySuccess(headers);
142 * Test multiple calls to Request.addHeader with valid headers and values
146 Map<String, String> headers = Maps.newHashMap();
147 headers.put("TestHeader", "RequestAddMultiHeader");
148 headers.put("TestHeader2", "RequestAddMultiHeader");
149 headers.put("TestHeader3", "RequestAddMultiHeader");
150 verifySuccess(headers);
156 * Test multiple calls to Request.addHeader with valid identical headers
160 Map<String, String> headers = Maps.newHashMap();
161 headers.put("TestHeader", "RequestAddSameHeader");
162 headers.put("TestHeader", "RequestAddSameHeader");
163 headers.put("TestHeader", "RequestAddSameHeader");
164 verifySuccess(headers);
171 * any exceptions but accept that there are no headers to add.