Lines Matching defs:headers
39 private final Headers headers;
50 this.headers = builder.headers.build();
76 public Headers headers() {
77 return headers;
81 return headers.get(name);
84 public List<String> headers(String name) {
85 return headers.values(name);
101 return headers;
114 return result != null ? result : (parsedHeaders = new ParsedHeaders(headers));
123 return result != null ? result : (cacheControl = CacheControl.parse(headers));
130 /** Parsed request headers, computed on-demand and cached. */
135 public ParsedHeaders(Headers headers) {
136 for (int i = 0; i < headers.size(); i++) {
137 String fieldName = headers.name(i);
138 String value = headers.value(i);
235 private Headers.Builder headers;
241 this.headers = new Headers.Builder();
249 this.headers = request.headers.newBuilder();
268 * already has any headers with that name, they are all replaced.
271 headers.set(name, value);
277 * multiply-valued headers like "Cookie".
280 headers.add(name, value);
285 headers.removeAll(name);
289 /** Removes all headers on this builder and adds {@code headers}. */
290 public Builder headers(Headers headers) {
291 this.headers = headers.newBuilder();