Home
last modified time | relevance | path

Searched refs:HttpHeaders (Results 1 – 25 of 35) sorted by relevance

12

/external/jetty/src/java/org/eclipse/jetty/server/
DResponse.java41 import org.eclipse.jetty.http.HttpHeaders;
319 setHeader(HttpHeaders.EXPIRES,null); in sendError()
320 setHeader(HttpHeaders.LAST_MODIFIED,null); in sendError()
321 setHeader(HttpHeaders.CACHE_CONTROL,null); in sendError()
322 setHeader(HttpHeaders.CONTENT_TYPE,null); in sendError()
323 setHeader(HttpHeaders.CONTENT_LENGTH,null); in sendError()
355 setHeader(HttpHeaders.CACHE_CONTROL, "must-revalidate,no-cache,no-store"); in sendError()
400 _connection.getRequestFields().remove(HttpHeaders.CONTENT_TYPE_BUFFER); in sendError()
401 _connection.getRequestFields().remove(HttpHeaders.CONTENT_LENGTH_BUFFER); in sendError()
498 setHeader(HttpHeaders.LOCATION,location); in sendRedirect()
[all …]
DAbstractHttpConnection.java41 import org.eclipse.jetty.http.HttpHeaders;
836 int ho = HttpHeaders.CACHE.getOrdinal(name); in parsedHeader()
839 case HttpHeaders.HOST_ORDINAL: in parsedHeader()
844 case HttpHeaders.EXPECT_ORDINAL: in parsedHeader()
884 case HttpHeaders.ACCEPT_ENCODING_ORDINAL: in parsedHeader()
885 case HttpHeaders.USER_AGENT_ORDINAL: in parsedHeader()
889 case HttpHeaders.CONTENT_TYPE_ORDINAL: in parsedHeader()
918 … _responseFields.add(HttpHeaders.CONNECTION_BUFFER, HttpHeaderValues.KEEP_ALIVE_BUFFER); in headerComplete()
936 … _responseFields.add(HttpHeaders.CONNECTION_BUFFER,HttpHeaderValues.CLOSE_BUFFER); in headerComplete()
946 … _responseFields.put(HttpHeaders.CONNECTION_BUFFER, HttpHeaderValues.CLOSE_BUFFER); in headerComplete()
[all …]
DAbstractConnector.java32 import org.eclipse.jetty.http.HttpHeaders;
79 private String _forwardedHostHeader = HttpHeaders.X_FORWARDED_HOST;
80 private String _forwardedServerHeader = HttpHeaders.X_FORWARDED_SERVER;
81 private String _forwardedForHeader = HttpHeaders.X_FORWARDED_FOR;
82 private String _forwardedProtoHeader = HttpHeaders.X_FORWARDED_PROTO;
441 httpFields.put(HttpHeaders.HOST_BUFFER,_hostHeader); in checkForwardedHeaders()
449 httpFields.put(HttpHeaders.HOST_BUFFER,forwardedHost); in checkForwardedHeaders()
DNCSARequestLog.java30 import org.eclipse.jetty.http.HttpHeaders;
484 addr = request.getHeader(HttpHeaders.X_FORWARDED_FOR); in log()
625 String referer = request.getHeader(HttpHeaders.REFERER); in logExtended()
635 String agent = request.getHeader(HttpHeaders.USER_AGENT); in logExtended()
/external/jetty/src/java/org/eclipse/jetty/servlet/
DDefaultServlet.java43 import org.eclipse.jetty.http.HttpHeaders;
430 reqRanges = request.getHeaders(HttpHeaders.RANGE); in doGet()
463 response.addHeader(HttpHeaders.VARY,HttpHeaders.ACCEPT_ENCODING); in doGet()
466 String accept=request.getHeader(HttpHeaders.ACCEPT_ENCODING); in doGet()
514 response.setHeader(HttpHeaders.CONTENT_ENCODING,"gzip"); in doGet()
683 String ifm=request.getHeader(HttpHeaders.IF_MATCH); in passConditionalHeaders()
707 String ifnm=request.getHeader(HttpHeaders.IF_NONE_MATCH); in passConditionalHeaders()
716 r.getHttpFields().put(HttpHeaders.ETAG_BUFFER,ifnm); in passConditionalHeaders()
727 r.getHttpFields().put(HttpHeaders.ETAG_BUFFER,content.getETag()); in passConditionalHeaders()
741 r.getHttpFields().put(HttpHeaders.ETAG_BUFFER,content.getETag()); in passConditionalHeaders()
[all …]
/external/jetty/src/java/org/eclipse/jetty/security/authentication/
DSpnegoAuthenticator.java28 import org.eclipse.jetty.http.HttpHeaders;
70 String header = req.getHeader(HttpHeaders.AUTHORIZATION); in validateRequest()
88 res.setHeader(HttpHeaders.WWW_AUTHENTICATE, HttpHeaders.NEGOTIATE); in validateRequest()
97 else if (header != null && header.startsWith(HttpHeaders.NEGOTIATE)) in validateRequest()
DFormAuthenticator.java36 import org.eclipse.jetty.http.HttpHeaders;
260 response.setHeader(HttpHeaders.CACHE_CONTROL,"No-cache"); in validateRequest()
261 response.setDateHeader(HttpHeaders.EXPIRES,1); in validateRequest()
346 response.setHeader(HttpHeaders.CACHE_CONTROL,"No-cache"); in validateRequest()
347 response.setDateHeader(HttpHeaders.EXPIRES,1); in validateRequest()
473 if (HttpHeaders.CACHE_CONTROL.equalsIgnoreCase(name) || in notIgnored()
474 HttpHeaders.PRAGMA.equalsIgnoreCase(name) || in notIgnored()
475 HttpHeaders.ETAG.equalsIgnoreCase(name) || in notIgnored()
476 HttpHeaders.EXPIRES.equalsIgnoreCase(name) || in notIgnored()
477 HttpHeaders.LAST_MODIFIED.equalsIgnoreCase(name) || in notIgnored()
[all …]
DBasicAuthenticator.java28 import org.eclipse.jetty.http.HttpHeaders;
67 String credentials = request.getHeader(HttpHeaders.AUTHORIZATION); in validateRequest()
103 …response.setHeader(HttpHeaders.WWW_AUTHENTICATE, "basic realm=\"" + _loginService.getName() + '"'); in validateRequest()
/external/jetty/src/java/org/eclipse/jetty/server/handler/
DResourceHandler.java30 import org.eclipse.jetty.http.HttpHeaders;
445 String ifnm = request.getHeader(HttpHeaders.IF_NONE_MATCH); in handle()
450 baseRequest.getResponse().getHttpFields().put(HttpHeaders.ETAG_BUFFER,etag); in handle()
458 long if_modified=request.getDateHeader(HttpHeaders.IF_MODIFIED_SINCE); in handle()
472 response.setDateHeader(HttpHeaders.LAST_MODIFIED,last_modified); in handle()
474 baseRequest.getResponse().getHttpFields().put(HttpHeaders.ETAG_BUFFER,etag); in handle()
530 fields.putLongField(HttpHeaders.CONTENT_LENGTH_BUFFER,length); in doResponseHeaders()
533 fields.put(HttpHeaders.CACHE_CONTROL_BUFFER,_cacheControl); in doResponseHeaders()
538 response.setHeader(HttpHeaders.CONTENT_LENGTH,Long.toString(length)); in doResponseHeaders()
541 response.setHeader(HttpHeaders.CACHE_CONTROL,_cacheControl.toString()); in doResponseHeaders()
DMovedContextHandler.java27 import org.eclipse.jetty.http.HttpHeaders;
124 response.setHeader(HttpHeaders.LOCATION,location.toString()); in handle()
127 response.setHeader(HttpHeaders.EXPIRES,_expires); in handle()
DDefaultHandler.java29 import org.eclipse.jetty.http.HttpHeaders;
96 if (request.getDateHeader(HttpHeaders.IF_MODIFIED_SINCE)==_faviconModified) in handle()
103 response.setDateHeader(HttpHeaders.LAST_MODIFIED, _faviconModified); in handle()
104 response.setHeader(HttpHeaders.CACHE_CONTROL,"max-age=360000,public"); in handle()
/external/jetty/src/java/org/eclipse/jetty/http/
DHttpFields.java402 return _names.get(HttpHeaders.CACHE.lookup(name));
408 return _names.get(HttpHeaders.CACHE.lookup(name));
414 return _names.containsKey(HttpHeaders.CACHE.lookup(name));
420 return _names.containsKey(HttpHeaders.CACHE.lookup(name));
609 Buffer n = HttpHeaders.CACHE.lookup(name);
624 Buffer n = HttpHeaders.CACHE.lookup(name);
643 name = HttpHeaders.CACHE.lookup(name);
667 Buffer n = HttpHeaders.CACHE.lookup(name);
701 Buffer n = HttpHeaders.CACHE.lookup(name);
721 name = HttpHeaders.CACHE.lookup(name);
[all …]
DHttpHeaderValues.java81 case HttpHeaders.CONNECTION_ORDINAL: in hasKnownValues()
82 case HttpHeaders.TRANSFER_ENCODING_ORDINAL: in hasKnownValues()
83 case HttpHeaders.CONTENT_ENCODING_ORDINAL: in hasKnownValues()
DHttpHeaders.java27 public class HttpHeaders extends BufferCache class
174 public final static HttpHeaders CACHE= new HttpHeaders();
DHttpGenerator.java484 _header.put(HttpHeaders.DATE_BUFFER); in completeHeader()
510 case HttpHeaders.CONTENT_LENGTH_ORDINAL: in completeHeader()
521 case HttpHeaders.CONTENT_TYPE_ORDINAL: in completeHeader()
529 case HttpHeaders.TRANSFER_ENCODING_ORDINAL: in completeHeader()
535 case HttpHeaders.CONNECTION_ORDINAL: in completeHeader()
632 case HttpHeaders.SERVER_ORDINAL: in completeHeader()
672 _header.put(HttpHeaders.CONTENT_LENGTH_BUFFER); in completeHeader()
/external/jetty/src/java/org/eclipse/jetty/client/
DContentExchange.java28 import org.eclipse.jetty.http.HttpHeaders;
79 int header = HttpHeaders.CACHE.getOrdinal(name); in onResponseHeader()
82 case HttpHeaders.CONTENT_LENGTH_ORDINAL: in onResponseHeader()
85 case HttpHeaders.CONTENT_TYPE_ORDINAL: in onResponseHeader()
DRedirectListener.java23 import org.eclipse.jetty.http.HttpHeaders;
77 int header = HttpHeaders.CACHE.getOrdinal(name); in onResponseHeader()
80 case HttpHeaders.LOCATION_ORDINAL: in onResponseHeader()
159 _exchange.setRequestHeader( HttpHeaders.HOST, hostHeader.toString() ); in checkExchangeComplete()
DAbstractHttpConnection.java30 import org.eclipse.jetty.http.HttpHeaders;
218 if (!requestHeaders.containsKey(HttpHeaders.HOST_BUFFER)) in commitRequest()
219 requestHeaders.add(HttpHeaders.HOST_BUFFER,_destination.getHostHeader()); in commitRequest()
225 requestHeaders.putLongField(HttpHeaders.CONTENT_LENGTH, requestContent.length()); in commitRequest()
239 requestHeaders.remove(HttpHeaders.CONTENT_LENGTH); in commitRequest()
307 if (HttpHeaders.CACHE.getOrdinal(name) == HttpHeaders.CONNECTION_ORDINAL) in parsedHeader()
DHttpDestination.java35 import org.eclipse.jetty.http.HttpHeaders;
541 ex.addRequestHeader(HttpHeaders.COOKIE, buf.toString()); in doSend()
696 addRequestHeader(HttpHeaders.HOST, serverHostAndPort); in ConnectExchange()
697 addRequestHeader(HttpHeaders.PROXY_CONNECTION, "keep-alive"); in ConnectExchange()
698 addRequestHeader(HttpHeaders.USER_AGENT, "Jetty-Client"); in ConnectExchange()
/external/jetty/src/java/org/eclipse/jetty/client/security/
DProxyAuthorization.java25 import org.eclipse.jetty.http.HttpHeaders;
55 exchange.setRequestHeader( HttpHeaders.PROXY_AUTHORIZATION_BUFFER, _authorization); in setCredentials()
DBasicAuthentication.java25 import org.eclipse.jetty.http.HttpHeaders;
55 exchange.setRequestHeader( HttpHeaders.AUTHORIZATION_BUFFER, _authorization); in setCredentials()
DSecurityListener.java29 import org.eclipse.jetty.http.HttpHeaders;
156 int header = HttpHeaders.CACHE.getOrdinal(name); in onResponseHeader()
159 case HttpHeaders.WWW_AUTHENTICATE_ORDINAL: in onResponseHeader()
DDigestAuthentication.java27 import org.eclipse.jetty.http.HttpHeaders;
71 exchange.setRequestHeader( HttpHeaders.AUTHORIZATION, in setCredentials()
/external/okhttp/benchmarks/src/main/java/com/squareup/okhttp/benchmarks/
DNettyHttpClient.java36 import io.netty.handler.codec.http.HttpHeaders;
151 request.headers().set(HttpHeaders.Names.HOST, url.getHost()); in sendRequest()
152 request.headers().set(HttpHeaders.Names.ACCEPT_ENCODING, HttpHeaders.Values.GZIP); in sendRequest()
/external/guava/guava/src/com/google/common/net/
DHttpHeaders.java37 public final class HttpHeaders { class
38 private HttpHeaders() {} in HttpHeaders() method in HttpHeaders

12