Home
last modified time | relevance | path

Searched refs:setHeader (Results 1 – 25 of 106) sorted by relevance

12345

/external/okhttp/okhttp-ws-tests/src/test/java/com/squareup/okhttp/ws/
DWebSocketCallTest.java143 .setHeader("Upgrade", "websocket") in missingConnectionHeader()
144 .setHeader("Sec-WebSocket-Accept", "ujmZX4KXZqjwy6vi1aQFH5p4Ygk=")); in missingConnectionHeader()
153 .setHeader("Upgrade", "websocket") in wrongConnectionHeader()
154 .setHeader("Connection", "Downgrade") in wrongConnectionHeader()
155 .setHeader("Sec-WebSocket-Accept", "ujmZX4KXZqjwy6vi1aQFH5p4Ygk=")); in wrongConnectionHeader()
164 .setHeader("Connection", "Upgrade") in missingUpgradeHeader()
165 .setHeader("Sec-WebSocket-Accept", "ujmZX4KXZqjwy6vi1aQFH5p4Ygk=")); in missingUpgradeHeader()
174 .setHeader("Connection", "Upgrade") in wrongUpgradeHeader()
175 .setHeader("Upgrade", "Pepsi") in wrongUpgradeHeader()
176 .setHeader("Sec-WebSocket-Accept", "ujmZX4KXZqjwy6vi1aQFH5p4Ygk=")); in wrongUpgradeHeader()
[all …]
/external/nist-sip/java/gov/nist/javax/sip/message/
DMessageFactoryImpl.java143 sipRequest.setHeader(userAgent); in createRequest()
199 sipRequest.setHeader((ContentType) contentType); in createRequest()
202 sipRequest.setHeader(userAgent); in createRequest()
251 sipRequest.setHeader(userAgent); in createRequest()
311 sipResponse.setHeader(userAgent); in createResponse()
360 sipResponse.setHeader((ContentType) contentType); in createResponse()
363 sipResponse.setHeader(userAgent); in createResponse()
408 sipResponse.setHeader(userAgent); in createResponse()
443 sipResponse.setHeader(server); in createResponse()
474 sipResponse.setHeader((ContentType) contentType); in createResponse()
[all …]
DSIPRequest.java720 newResponse.setHeader(MessageFactoryImpl.getDefaultServerHeader()); in createResponse()
730 newResponse.setHeader(server); in createResponse()
777 cancel.setHeader((Header) this.callIdHeader.clone()); in createCancelRequest()
778 cancel.setHeader((Header) this.toHeader.clone()); in createCancelRequest()
779 cancel.setHeader((Header) cSeqHeader.clone()); in createCancelRequest()
785 cancel.setHeader((Header) this.fromHeader.clone()); in createCancelRequest()
788 cancel.setHeader((Header) this.maxForwardsHeader.clone()); in createCancelRequest()
795 cancel.setHeader((SIPHeaderList< ? >) this.getRouteHeaders().clone()); in createCancelRequest()
798 cancel.setHeader(MessageFactoryImpl.getDefaultUserAgentHeader()); in createCancelRequest()
885 newRequest.setHeader(MessageFactoryImpl.getDefaultUserAgentHeader()); in createAckRequest()
[all …]
DSIPMessage.java578 public void setHeader(Header sipHeader) { in setHeader() method in SIPMessage
1017 this.setHeader(vList); in setVia()
1026 public void setHeader(SIPHeaderList<Via> sipHeaderList) { in setHeader() method in SIPMessage
1027 this.setHeader((Header) sipHeaderList); in setHeader()
1079 this.setHeader(maxForwards); in setMaxForwards()
1109 this.setHeader(callId); in setCallId()
1119 this.setHeader(new CallID()); in setCallId()
1146 this.setHeader(to); in setTo()
1150 this.setHeader(from); in setFrom()
1217 this.setHeader(ct); in setMessageContent()
[all …]
/external/okhttp/okhttp-apache/src/test/java/com/squareup/okhttp/apache/
DOkApacheClientTest.java151 .setHeader("Content-Type", "text/html")); in contentType()
153 .setHeader("Content-Type", "application/json")); in contentType()
181 .setHeader("cONTENT-tYPE", "application/json")); in contentTypeIsCaseInsensitive()
191 .setHeader("Content-Encoding", "gzip")); in contentEncoding()
194 request.setHeader("Accept-encoding", "gzip"); // Not transparent gzip. in contentEncoding()
210 .setHeader("Content-Encoding", "gzip") in jsonGzipResponse()
211 .setHeader("Content-Type", "application/json")); in jsonGzipResponse()
214 request1.setHeader("Accept-encoding", "gzip"); // Not transparent gzip. in jsonGzipResponse()
237 .setHeader("Content-Encoding", "gzip") in jsonTransparentGzipResponse()
238 .setHeader("Content-Type", "application/json")); in jsonTransparentGzipResponse()
/external/jetty/src/java/org/eclipse/jetty/http/gzip/
DCompressedResponseWrapper.java202 response.setHeader("Content-Length", Long.toString(_contentLength)); in setContentLength()
362 super.setHeader("Content-Length",Long.toString(_contentLength)); in setDeferredHeaders()
365 super.setHeader("ETag",_etag); in setDeferredHeaders()
374 public void setHeader(String name, String value) in setHeader() method in CompressedResponseWrapper
377 super.setHeader(name,value); in setHeader()
388 super.setHeader(name,value); in setHeader()
397 super.setHeader(name,value); in setHeader()
DAbstractCompressedStream.java104 _response.setHeader("Content-Length",Long.toString(length)); in setContentLength()
243 setHeader("Content-Encoding", _encoding); in doCompress()
258 setHeader("ETag",etag.substring(0,etag.length()-1)+'-'+_encoding+'"'); in doCompress()
283 setHeader("ETag",_wrapper.getETag()); in doNotCompress()
374 protected void setHeader(String name,String value) in setHeader() method in AbstractCompressedStream
376 _response.setHeader(name, value); in setHeader()
/external/jetty/src/java/org/eclipse/jetty/servlets/
DCrossOriginFilter.java340 response.setHeader(ACCESS_CONTROL_ALLOW_ORIGIN_HEADER, origin); in handleSimpleResponse()
342 response.setHeader(ACCESS_CONTROL_ALLOW_CREDENTIALS_HEADER, "true"); in handleSimpleResponse()
344 response.setHeader(ACCESS_CONTROL_EXPOSE_HEADERS_HEADER, commify(exposedHeaders)); in handleSimpleResponse()
355 response.setHeader(ACCESS_CONTROL_ALLOW_ORIGIN_HEADER, origin); in handlePreflightResponse()
357 response.setHeader(ACCESS_CONTROL_ALLOW_CREDENTIALS_HEADER, "true"); in handlePreflightResponse()
359 response.setHeader(ACCESS_CONTROL_MAX_AGE_HEADER, String.valueOf(preflightMaxAge)); in handlePreflightResponse()
360 response.setHeader(ACCESS_CONTROL_ALLOW_METHODS_HEADER, commify(allowedMethods)); in handlePreflightResponse()
361 response.setHeader(ACCESS_CONTROL_ALLOW_HEADERS_HEADER, commify(allowedHeaders)); in handlePreflightResponse()
DIncludableGzipFilter.java145 public void setHeader(String name,String value) in setHeader() method in IncludableGzipFilter.IncludableResponseWrapper
147 super.setHeader(name,value); in setHeader()
150 response.setHeader("org.eclipse.jetty.server.include."+name,value); in setHeader()
159 setHeader(name,value); in addHeader()
/external/okhttp/mockwebserver/src/main/java/com/squareup/okhttp/mockwebserver/
DMockResponse.java49 setHeader("Content-Length", 0); in MockResponse()
123 public MockResponse setHeader(String name, Object value) { in setHeader() method in MockResponse
146 setHeader("Content-Length", body.size()); in setBody()
250 setHeader("Connection", "Upgrade"); in withWebSocketUpgrade()
251 setHeader("Upgrade", "websocket"); in withWebSocketUpgrade()
/external/apache-http/src/org/apache/http/protocol/
DResponseConnControl.java84 response.setHeader(HTTP.CONN_DIRECTIVE, HTTP.CONN_CLOSE); in process()
94 response.setHeader(HTTP.CONN_DIRECTIVE, HTTP.CONN_CLOSE); in process()
104 response.setHeader(HTTP.CONN_DIRECTIVE, header.getValue()); in process()
/external/apache-http/src/org/apache/http/
DHttpMessage.java133 void setHeader(Header header); in setHeader() method
142 void setHeader(String name, String value); in setHeader() method
/external/mockwebserver/src/main/java/com/google/mockwebserver/
DMockResponse.java124 public MockResponse setHeader(String name, Object value) { in setHeader() method in MockResponse
158 setHeader("Content-Length", body.length); in setBody()
165 setHeader("Content-Length", bodyLength); in setBody()
/external/webrtc/webrtc/base/
Dhttpbase_unittest.cc271 data.setHeader(HH_CONTENT_TYPE, "text/plain"); in SetupDocument()
272 data.setHeader(HH_TRANSFER_ENCODING, "chunked"); in SetupDocument()
274 data.setHeader(HH_CONTENT_LENGTH, "0"); in SetupDocument()
277 data.setHeader(HH_PROXY_AUTHORIZATION, "42"); in SetupDocument()
278 data.setHeader(HH_CONNECTION, "Keep-Alive"); in SetupDocument()
Dhttpclient.cc329 request().setHeader(HH_HOST, HttpAddress(server_, false), true); in set_server()
355 request().setHeader(HH_CONTENT_LENGTH, "0", false); in start()
358 request().setHeader(HH_USER_AGENT, agent_, false); in start()
366 request().setHeader(HH_PROXY_CONNECTION, "Keep-Alive", false); in start()
368 request().setHeader(HH_CONNECTION, "Keep-Alive", false); in start()
383 request().setHeader(HH_HOST, host); in start()
782 request().setHeader(HH_PROXY_AUTHORIZATION, authorization); in onHttpComplete()
Dhttpcommon.cc478 setHeader(HH_CONTENT_TYPE, content_type); in setContent()
492 setHeader(HH_CONTENT_LENGTH, buffer); in setDocumentAndLength()
494 setHeader(HH_TRANSFER_ENCODING, "chunked"); in setDocumentAndLength()
606 setHeader(HH_CONTENT_LENGTH, "0", false); in set_success()
621 setHeader(HH_LOCATION, location); in set_redirect()
622 setHeader(HH_CONTENT_LENGTH, "0", false); in set_redirect()
628 setHeader(HH_CONTENT_LENGTH, "0", false); in set_error()
/external/jetty/src/java/org/eclipse/jetty/websocket/
DWebSocketServletConnectionD00.java68 response.setHeader("Upgrade","WebSocket"); in handshake()
83 response.setHeader("Upgrade","WebSocket"); in handshake()
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/tester/org/apache/http/
DHttpResponseStub.java87 @Override public void setHeader(Header header) { in setHeader() method in HttpResponseStub
91 @Override public void setHeader(String s, String s1) { in setHeader() method in HttpResponseStub
/external/apache-http/src/org/apache/http/message/
DAbstractHttpMessage.java111 public void setHeader(final Header header) { in setHeader() method in AbstractHttpMessage
116 public void setHeader(final String name, final String value) { in setHeader() method in AbstractHttpMessage
/external/jetty/src/java/org/eclipse/jetty/server/handler/
DMovedContextHandler.java124 response.setHeader(HttpHeaders.LOCATION,location.toString()); in handle()
127 response.setHeader(HttpHeaders.EXPIRES,_expires); in handle()
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/tester/org/apache/http/
DFakeHttpLayerTest.java67 match.setHeader(new BasicHeader("header1", "header one")); in matches__shouldMatchHeaders()
68 noMatch.setHeader(new BasicHeader("header1", "header not a match")); in matches__shouldMatchHeaders()
DTestHttpResponseTest.java115 response.setHeader(new BasicHeader("foo", "bletch")); in canOverrideExistingHeaderValue()
123 response.setHeader(new BasicHeader("foo", "bletch")); in onlyOverridesFirstHeaderValue()
/external/jetty/src/java/org/eclipse/jetty/server/
DResponse.java319 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()
498 setHeader(HttpHeaders.LOCATION,location); in sendRedirect()
528 public void setHeader(String name, String value) in setHeader() method in Response
/external/jetty/src/java/org/eclipse/jetty/servlet/
DDefaultServlet.java514 response.setHeader(HttpHeaders.CONTENT_ENCODING,"gzip"); in doGet()
630 resp.setHeader("Allow", "GET,HEAD,POST,OPTIONS"); in doOptions()
951 response.setHeader(HttpHeaders.CONTENT_RANGE, in sendData()
966 response.setHeader(HttpHeaders.CONTENT_RANGE, in sendData()
1090 response.setHeader(HttpHeaders.CONTENT_LENGTH,Long.toString(count)); in writeHeaders()
1096 response.setHeader(HttpHeaders.ETAG,content.getETag().toString()); in writeHeaders()
1114 response.setHeader(HttpHeaders.ACCEPT_RANGES,"bytes"); in writeOptionHeaders()
1117 response.setHeader(HttpHeaders.CACHE_CONTROL,_cacheControl.toString()); in writeOptionHeaders()
/external/jetty/src/java/org/eclipse/jetty/security/authentication/
DFormAuthenticator.java260 response.setHeader(HttpHeaders.CACHE_CONTROL,"No-cache"); in validateRequest()
346 response.setHeader(HttpHeaders.CACHE_CONTROL,"No-cache"); in validateRequest()
465 public void setHeader(String name, String value) in setHeader() method in FormAuthenticator.FormResponse
468 super.setHeader(name,value); in setHeader()

12345