Home
last modified time | relevance | path

Searched refs:addHeader (Results 1 – 25 of 53) sorted by relevance

123

/external/okhttp/src/test/java/com/squareup/okhttp/internal/http/
DHttpResponseCacheTest.java192 new MockResponse().addHeader("Last-Modified: " + formatDate(-1, TimeUnit.HOURS)) in assertCached()
193 .addHeader("Expires: " + formatDate(1, TimeUnit.HOURS)) in assertCached()
196 .addHeader("WWW-Authenticate: challenge"); in assertCached()
198 response.addHeader("Proxy-Authenticate: Basic realm=\"protected area\""); in assertCached()
200 response.addHeader("WWW-Authenticate: Basic realm=\"protected area\""); in assertCached()
232 new MockResponse().setStatus("HTTP/1.1 200 Fantastic").addHeader("fgh: ijk").setBody(body)); in responseCacheCallbackApis()
294 new MockResponse().addHeader("Last-Modified: " + formatDate(-1, TimeUnit.HOURS)) in testResponseCaching()
295 .addHeader("Expires: " + formatDate(1, TimeUnit.HOURS)) in testResponseCaching()
329 server.enqueue(new MockResponse().addHeader("Last-Modified: " + formatDate(-1, TimeUnit.HOURS)) in secureResponseCaching()
330 .addHeader("Expires: " + formatDate(1, TimeUnit.HOURS)) in secureResponseCaching()
[all …]
DURLConnectionTest.java201 .addHeader("A: c") in responseHeaders()
202 .addHeader("B: d") in responseHeaders()
203 .addHeader("A: e") in responseHeaders()
494 server.enqueue(new MockResponse().addHeader("abc: def")); in getResponseCodeNoResponseBody()
633 .addHeader("Content-Length: 3")); in contentDisagreesWithContentLengthHeader()
647 mockResponse.addHeader("Transfer-encoding: chunked"); in contentDisagreesWithChunkedHeader()
809 .addHeader("Proxy-Authenticate: Basic realm=\"localhost\"")); in proxyAuthenticateOnConnect()
961 MockResponse response = new MockResponse().addHeader("WWW-Authenticate: challenge") in unauthorizedResponseHandling()
981 .addHeader("Transfer-encoding: chunked")); in nonHexChunkSize()
995 .addHeader("Transfer-encoding: chunked") in missingChunkBody()
[all …]
/external/apache-http/src/org/apache/http/protocol/
DRequestContent.java75 request.addHeader(HTTP.CONTENT_LEN, "0"); in process()
84 request.addHeader(HTTP.TRANSFER_ENCODING, HTTP.CHUNK_CODING); in process()
86 request.addHeader(HTTP.CONTENT_LEN, Long.toString(entity.getContentLength())); in process()
91 request.addHeader(entity.getContentType()); in process()
96 request.addHeader(entity.getContentEncoding()); in process()
DResponseContent.java77 response.addHeader(HTTP.TRANSFER_ENCODING, HTTP.CHUNK_CODING); in process()
79 response.addHeader(HTTP.CONTENT_LEN, Long.toString(entity.getContentLength())); in process()
84 response.addHeader(entity.getContentType()); in process()
89 response.addHeader(entity.getContentEncoding()); in process()
96 response.addHeader(HTTP.CONTENT_LEN, "0"); in process()
DRequestConnControl.java63 request.addHeader(HTTP.CONN_DIRECTIVE, HTTP.CONN_KEEP_ALIVE); in process()
DRequestUserAgent.java64 request.addHeader(HTTP.USER_AGENT, useragent); in process()
DResponseServer.java66 response.addHeader(HTTP.SERVER_HEADER, s); in process()
DRequestExpectContinue.java72 request.addHeader(HTTP.EXPECT_DIRECTIVE, HTTP.EXPECT_CONTINUE); in process()
DRequestTargetHost.java94 request.addHeader(HTTP.TARGET_HOST, targethost.toHostString()); in process()
/external/mockwebserver/src/test/java/com/google/mockwebserver/
DMockWebServerTest.java83 .addHeader("Cookie: s=square") in testMockResponseAddHeader()
84 .addHeader("Cookie", "a=android"); in testMockResponseAddHeader()
92 .addHeader("Cookie: s=square") in testMockResponseSetHeader()
93 .addHeader("Cookie: a=android") in testMockResponseSetHeader()
94 .addHeader("Cookies: delicious"); in testMockResponseSetHeader()
121 .addHeader("Location: " + server.getUrl("/new-path")) in testRedirect()
163 .addHeader("Transfer-encoding: chunked")); in testNonHexadecimalChunkSize()
179 .addHeader("Content-Length: 4")); in testResponseTimeout()
/external/apache-http/src/org/apache/http/message/
DAbstractHttpMessage.java93 public void addHeader(final Header header) { in addHeader() method in AbstractHttpMessage
94 this.headergroup.addHeader(header); in addHeader()
98 public void addHeader(final String name, final String value) { in addHeader() method in AbstractHttpMessage
102 this.headergroup.addHeader(new BasicHeader(name, value)); in addHeader()
/external/mockwebserver/src/main/java/com/google/mockwebserver/
DMockResponse.java100 public MockResponse addHeader(String header) { in addHeader() method in MockResponse
109 public MockResponse addHeader(String name, Object value) { in addHeader() method in MockResponse
110 return addHeader(name + ": " + String.valueOf(value)); in addHeader()
119 return addHeader(name, value); in setHeader()
/external/chromium_org/third_party/WebKit/Source/platform/exported/
DWebHTTPLoadInfo.cpp103 static void addHeader(HTTPHeaderMap* map, const WebString& name, const WebString& value) in addHeader() function
114 addHeader(&m_private->requestHeaders, name, value); in addRequestHeader()
120 addHeader(&m_private->responseHeaders, name, value); in addResponseHeader()
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/
DCSSStyleSheetMapping.js55 this._stylesSourceMapping.addHeader(header);
56 this._sassSourceMapping.addHeader(header);
/external/apache-http/src/org/apache/http/
DHttpMessage.java111 void addHeader(Header header); in addHeader() method
120 void addHeader(String name, String value); in addHeader() method
/external/chromium/third_party/libjingle/source/talk/p2p/client/
Dhttpportallocator.cc178 request->request().addHeader("X-Talk-Google-Relay-Auth", relay_token_, true); in SendSessionRequest()
179 request->request().addHeader("X-Google-Relay-Auth", relay_token_, true); in SendSessionRequest()
180 request->request().addHeader("X-Session-Type", session_type(), true); in SendSessionRequest()
181 request->request().addHeader("X-Stream-Type", name(), true); in SendSessionRequest()
/external/okhttp/src/test/java/com/squareup/okhttp/internal/spdy/
DHttpOverSpdyTest.java147 server.enqueue(new MockResponse().addHeader("Content-Encoding: gzip") in gzippedResponseBody()
155 .addHeader("www-authenticate: Basic realm=\"protected area\"") in authenticate()
174 .addHeader("Location: /foo") in redirect()
202 server.enqueue(new MockResponse().addHeader("cache-control: max-age=60").setBody("A")); in responsesAreCached()
219 server.enqueue(new MockResponse().addHeader("ETag: v1").setBody("A")); in conditionalCache()
237 new MockResponse().addHeader("set-cookie: c=oreo; domain=" + server.getCookieDomain()) in acceptAndTransmitCookies()
/external/robolectric/src/main/java/com/xtremelabs/robolectric/tester/org/apache/http/
DHttpResponseStub.java79 @Override public void addHeader(Header header) { in addHeader() method in HttpResponseStub
83 @Override public void addHeader(String s, String s1) { in addHeader() method in HttpResponseStub
/external/apache-http/src/org/apache/http/client/protocol/
DRequestAddCookies.java164 request.addHeader(header); in process()
181 request.addHeader(header); in process()
DRequestDefaultHeaders.java69 request.addHeader((Header) defHeader); in process()
DRequestTargetAuthentication.java96 request.addHeader(authScheme.authenticate(creds, request)); in process()
DRequestProxyAuthentication.java95 request.addHeader(authScheme.authenticate(creds, request)); in process()
/external/nist-sip/java/gov/nist/javax/sip/clientauthutils/
DAuthenticationHelperImpl.java159 reoriginatedRequest.addHeader(iterator.next()); in handleChallenge()
263 reoriginatedRequest.addHeader(authorization); in handleChallenge()
451 request.addHeader(authHeader); in setAuthenticationHeaders()
/external/okhttp/src/test/java/com/squareup/okhttp/internal/
DAsyncApiTest.java42 .addHeader("Content-Type: text/plain")); in get()
/external/chromium/third_party/libjingle/source/talk/base/
Dhttpcommon.h308 inline void addHeader(const std::string& name, const std::string& value,
354 inline void addHeader(HttpHeader header, const std::string& value,
356 addHeader(ToString(header), value, append);

123