Home
last modified time | relevance | path

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

123

/external/okhttp/okhttp-ws-tests/src/test/java/com/squareup/okhttp/ws/
DWebSocketCallTest.java107 .setHeader("Upgrade", "websocket") in missingConnectionHeader()
108 .setHeader("Sec-WebSocket-Accept", "ujmZX4KXZqjwy6vi1aQFH5p4Ygk=")); in missingConnectionHeader()
117 .setHeader("Upgrade", "websocket") in wrongConnectionHeader()
118 .setHeader("Connection", "Downgrade") in wrongConnectionHeader()
119 .setHeader("Sec-WebSocket-Accept", "ujmZX4KXZqjwy6vi1aQFH5p4Ygk=")); in wrongConnectionHeader()
128 .setHeader("Connection", "Upgrade") in missingUpgradeHeader()
129 .setHeader("Sec-WebSocket-Accept", "ujmZX4KXZqjwy6vi1aQFH5p4Ygk=")); in missingUpgradeHeader()
138 .setHeader("Connection", "Upgrade") in wrongUpgradeHeader()
139 .setHeader("Upgrade", "Pepsi") in wrongUpgradeHeader()
140 .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 …]
DSIPResponse.java689 newRequest.setHeader(via); in createRequest()
690 newRequest.setHeader(cseq); in createRequest()
730 newRequest.setHeader(MessageFactoryImpl.getDefaultUserAgentHeader()); in createRequest()
/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/okhttp/mockwebserver/src/main/java/com/squareup/okhttp/mockwebserver/
DMockResponse.java51 setHeader("Content-Length", 0); in MockResponse()
125 public MockResponse setHeader(String name, Object value) { in setHeader() method in MockResponse
148 setHeader("Content-Length", body.size()); in setBody()
266 setHeader("Connection", "Upgrade"); in withWebSocketUpgrade()
267 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()
DRequestDate.java73 request.setHeader(HTTP.DATE_HEADER, httpdate); in process()
DResponseDate.java74 response.setHeader(HTTP.DATE_HEADER, httpdate); 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/okhttp/okhttp-logging-interceptor/src/test/java/com/squareup/okhttp/logging/
DHttpLoggingInterceptorTest.java146 .setHeader("Content-Type", PLAIN)); in basicResponseBody()
314 .setHeader("Content-Type", PLAIN)); in headersResponseBody()
464 .setHeader("Content-Type", PLAIN)); in bodyResponseBody()
504 .setHeader("Content-Type", PLAIN)); in bodyResponseBodyChunked()
543 .setHeader("Content-Encoding", "gzip") in bodyResponseNotIdentityEncoded()
544 .setHeader("Content-Type", PLAIN) in bodyResponseNotIdentityEncoded()
/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()
Dhttpcommon.h306 inline void setHeader(const std::string& name, const std::string& value,
352 inline void setHeader(HttpHeader header, const std::string& value,
354 setHeader(ToString(header), value, overwrite);
/external/setupdesign/main/src/com/google/android/setupdesign/view/
DHeaderRecyclerView.java192 public void setHeader(View header) { in setHeader() method in HeaderRecyclerView.HeaderAdapter
250 public void setHeader(View header) { in setHeader() method in HeaderRecyclerView
270 headerAdapter.setHeader(header); in setAdapter()
/external/robolectric-shadows/shadows/httpclient/src/main/java/org/robolectric/shadows/httpclient/
DHttpResponseStub.java86 @Override public void setHeader(Header header) { in setHeader() method in HttpResponseStub
90 @Override public void setHeader(String s, String s1) { in setHeader() method in HttpResponseStub
/external/robolectric-shadows/shadows/httpclient/src/test/java/org/robolectric/shadows/httpclient/
DFakeHttpLayerTest.java57 match.setHeader(new BasicHeader("header1", "header one")); in matches_shouldMatchHeaders()
58 noMatch.setHeader(new BasicHeader("header1", "header not a match")); in matches_shouldMatchHeaders()
DTestHttpResponseTest.java111 response.setHeader(new BasicHeader("foo", "bletch")); in canOverrideExistingHeaderValue()
119 response.setHeader(new BasicHeader("foo", "bletch")); in onlyOverridesFirstHeaderValue()
/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/skqp/src/images/
DSkPngEncoder.cpp56 bool setHeader(const SkImageInfo& srcInfo, const SkPngEncoder::Options& options);
100 bool SkPngEncoderMgr::setHeader(const SkImageInfo& srcInfo, const SkPngEncoder::Options& options) { in setHeader() function in SkPngEncoderMgr
381 if (!encoderMgr->setHeader(src.info(), options)) { in Make()
/external/skia/src/images/
DSkPngEncoder.cpp56 bool setHeader(const SkImageInfo& srcInfo, const SkPngEncoder::Options& options);
100 bool SkPngEncoderMgr::setHeader(const SkImageInfo& srcInfo, const SkPngEncoder::Options& options) { in setHeader() function in SkPngEncoderMgr
386 if (!encoderMgr->setHeader(src.info(), options)) { in Make()
/external/nist-sip/java/gov/nist/javax/sip/
DDialogFilter.java113 sipResponse.setHeader(serverHeader); in sendRequestPendingResponse()
118 sipResponse.setHeader(retryAfter); in sendRequestPendingResponse()
146 sipResponse.setHeader(serverHeader); in sendBadRequestResponse()
177 sipResponse.setHeader(serverHeader); in sendCallOrTransactionDoesNotExistResponse()
206 sipResponse.setHeader(serverHeader); in sendLoopDetectedResponse()
237 sipResponse.setHeader(serverHeader); in sendServerInternalErrorResponse()
243 sipResponse.setHeader(retryAfter); in sendServerInternalErrorResponse()

123