/external/chromium/chrome/common/extensions/docs/examples/apps/hello-python/httplib2/ |
__init__.py | 141 # Does not use Age: headers when calculating cache freshness. 150 # Which headers are hop-by-hop headers by default 216 def _normalize_headers(headers): 217 return dict([ (key.lower(), NORMALIZE_SPACE.sub(value, ' ').strip()) for (key, value) in headers.iteritems()]) 219 def _parse_cache_control(headers): 221 if headers.has_key('cache-control'): 222 parts = headers['cache-control'].split(',') 228 # Whether to use a strict mode to parse WWW-Authenticate headers 242 def _parse_www_authenticate(headers, headername='www-authenticate') [all...] |
/external/chromium/chrome/browser/net/ |
url_request_mock_http_job.cc | 19 FILE_PATH_LITERAL(".mock-http-headers"); 94 // We have to load our headers from disk, but we only use this class 105 info->headers = new net::HttpResponseHeaders(raw_headers); 111 return info.headers && info.headers->GetMimeType(mime_type); 117 return info.headers && info.headers->GetCharset(charset);
|
/packages/providers/DownloadProvider/tests/src/tests/http/ |
MockResponse.java | 36 private Map<String, String> headers = new HashMap<String, String>(); field in class:MockResponse 58 * Returns the HTTP headers, such as "Content-Length: 0". 62 for (String header : headers.keySet()) { 63 headerStrings.add(header + ": " + headers.get(header)); 69 headers.put(header.toLowerCase(), value); 78 headers.remove(header.toLowerCase());
|
/external/chromium/net/tools/dump_cache/ |
cache_dumper.cc | 116 // in the set of headers, they are combined into a single line like so: 119 // DANGER: For some headers (e.g., "Set-Cookie"), the normalized form can be 121 // Set-Cookie headers that contain unquoted commas (usually as part of the 123 // not expect to be able to re-parse Set-Cookie headers from this output. 131 output->assign(info.headers->GetStatusLine()); 134 // Enumerate the headers 137 while (info.headers->EnumerateHeaderLines(&iter, &name, &value)) { 144 // Mark the end of headers 154 std::string headers; 157 if (index == 0) { // Stream 0 is the headers [all...] |
/packages/apps/Exchange/tests/src/com/android/exchange/ |
EasSyncServiceTests.java | 60 Header[] headers = method.getHeaders("X-MS-PolicyKey"); local 61 assertEquals(0, headers.length); 66 headers = method.getHeaders("X-MS-PolicyKey"); 67 assertEquals(1, headers.length); 68 assertEquals("0", headers[0].getValue()); 75 headers = method.getHeaders("X-MS-PolicyKey"); 76 assertEquals(1, headers.length); 77 assertEquals("0", headers[0].getValue()); 83 headers = method.getHeaders("X-MS-PolicyKey"); 84 assertEquals(1, headers.length) [all...] |
/external/chromium/net/http/ |
http_util_unittest.cc | 19 const char* headers; member in struct:__anon3647 32 bool result = HttpUtil::HasHeader(tests[i].headers, tests[i].name); 38 static const char* headers = local 56 HttpUtil::StripHeaders(headers, header_names, 61 std::string headers = "foo: 1\t\r\nbar: hello world\r\nbaz: 3 \r\n"; local 63 HttpUtil::HeadersIterator it(headers.begin(), headers.end(), "\r\n"); 81 std::string headers = "foo: 1\n: 2\n3\nbar: 4"; local 83 HttpUtil::HeadersIterator it(headers.begin(), headers.end(), "\n") 97 std::string headers = "foo: 1\\r\\n: 2\\r\\n3\\r\\nbar: 4"; local 109 std::string headers = "foo: 1\\r\\n: 2\\r\\n3\\r\\nbar: 4"; local 544 const char* headers; member in struct:__anon3651 [all...] |
http_response_info.h | 73 // The time at which the response headers were received. For cached 77 // If the response headers indicate a 401 or 407 failure, then this structure 90 // The parsed response headers and status line. 91 scoped_refptr<HttpResponseHeaders> headers; member in class:net::HttpResponseInfo
|
/external/chromium/net/url_request/ |
url_request_test_job.cc | 48 // static getter for simple response headers 50 const char headers[] = local 54 return std::string(headers, arraysize(headers)); 57 // static getter for redirect response headers 59 const char headers[] = local 63 return std::string(headers, arraysize(headers)); 66 // static getter for error response headers 68 const char headers[] local [all...] |
/external/webkit/Source/WebCore/platform/network/mac/ |
ResourceResponseMac.mm | 101 NSDictionary *headers = [httpResponse allHeaderFields]; 104 if (NSString* headerValue = [headers objectForKey:commonHeaderFields[i]]) 124 NSDictionary *headers = [httpResponse allHeaderFields]; 125 NSEnumerator *e = [headers keyEnumerator]; 127 m_httpHeaderFields.set(name, [headers objectForKey:name]);
|
/external/chromium/net/websockets/ |
websocket_handshake.cc | 91 scoped_refptr<HttpResponseHeaders> headers( 94 if (headers->response_code() != 101) { 96 DVLOG(1) << "Bad response code: " << headers->response_code(); 100 if (!ProcessHeaders(*headers) || !CheckResponseHeaders()) { 101 DVLOG(1) << "Process Headers failed: " << std::string(data, eoh); 157 bool WebSocketHandshake::GetSingleHeader(const HttpResponseHeaders& headers, 162 if (!headers.EnumerateHeader(&iter, name, &first_value)) 165 // Checks no more |name| found in |headers|. 168 if (headers.EnumerateHeader(&iter, name, &second_value)) 174 bool WebSocketHandshake::ProcessHeaders(const HttpResponseHeaders& headers) { [all...] |
websocket_handshake_draft75.h | 47 // Processes server handshake message, parsed as |headers|, and updates 51 virtual bool ProcessHeaders(const HttpResponseHeaders& headers);
|
/external/icu4c/test/perf/perldriver/ |
Output.pm | 18 my @headers; 94 if($#headers >= 0) { 101 print HTML "<th colspan=".((4*($#headers+1))-2)." class=\"sourceType\">Per Operation</th>\n"; 103 print HTML "<th colspan=".((2*($#headers+1))-2)." class=\"sourceType\">Per Operation</th>\n"; 104 print HTML "<th colspan=".((5*($#headers+1))-2)." class=\"sourceType\">Per Event</th>\n"; 108 foreach $header (@headers) { 113 for $i (1 .. $#headers) { 115 printLeg("<a name=\"mean_op_$i\">ratio $i /op</a> - ratio and error of per $operationIs time, calculated as: (($headers[0] - $headers[$i])/$headers[$i])*100%, mean value") [all...] |
/frameworks/base/core/java/com/google/android/mms/pdu/ |
PduParser.java | 64 * Store pdu headers 110 /* parse headers */ 113 // Parse headers failed. 122 log("check mandatory headers failed!"); 199 * Parse pdu headers. 202 * @return headers in PduHeaders structure, null when parse fail 210 PduHeaders headers = new PduHeaders(); local 249 headers.setOctet(messageType, headerField); 292 headers.setOctet(value, headerField); 311 headers.setLongInteger(value, headerField) [all...] |
SendReq.java | 39 // Impossible to reach here since all headers we set above are valid. 73 * Constructor with given headers. 75 * @param headers Headers for this PDU. 77 SendReq(PduHeaders headers) { 78 super(headers); 82 * Constructor with given headers and body 84 * @param headers Headers for this PDU. 87 SendReq(PduHeaders headers, PduBody body) [all...] |
/bionic/libc/kernel/tools/ |
find_headers.py | 3 # this program is used to find source code that includes linux kernel headers directly 30 this program is used to find all the kernel headers that are used 126 #destdir = "/tmp/bionic-kernel-headers/" 142 dir_excludes=[".repo","external/kernel-headers","ndk","out","prebuilt","bionic/libc/kernel","development/ndk","external/qemu/distrib"] 144 headers = fparser.getHeaders() variable 147 # now recursively scan the kernel headers for additionnal sub-included headers 148 hparser = kernel.KernelHeaderFinder(headers,archs,kernel_root,kernel_config) 149 headers = hparser.scanForAllArchs() variable 154 print "the following %d headers:" % len(headers [all...] |
/external/apache-http/src/org/apache/http/impl/entity/ |
LaxContentLengthStrategy.java | 54 * about unsupported transfer codecs and malformed content-length headers. 234 Header[] headers = message.getHeaders(HTTP.CONTENT_LEN); local 235 if (strict && headers.length > 1) { 236 throw new ProtocolException("Multiple content length headers"); 238 for (int i = headers.length - 1; i >= 0; i--) { 239 Header header = headers[i];
|
/external/chromium/chrome/browser/resources/options/ |
content_settings.css | 29 #exception-column-headers { 35 #exception-column-headers > div {
|
/external/chromium/net/spdy/ |
spdy_stream_unittest.cc | 227 linked_ptr<spdy::SpdyHeaderBlock> headers(new spdy::SpdyHeaderBlock); 228 (*headers)["method"] = "GET"; 229 (*headers)["scheme"] = url.scheme(); 230 (*headers)["host"] = url.host(); 231 (*headers)["path"] = url.path(); 232 (*headers)["version"] = "HTTP/1.1"; 233 stream->set_spdy_headers(headers); 266 // Set a couple of headers. 271 // Send some basic headers. 272 spdy::SpdyHeaderBlock headers; local [all...] |
/external/clang/test/Sema/ |
darwin-align-cast.c | 10 This code below comes from the following system headers:
|
/external/webkit/Source/WebCore/html/ |
HTMLTableCellElement.h | 47 String headers() const;
|
/frameworks/base/include/media/ |
MediaMetadataRetrieverInterface.h | 36 const KeyedVector<String8, String8> *headers = NULL) = 0;
|
/frameworks/base/media/libmedia/ |
IMediaMetadataRetriever.cpp | 87 const char *srcUrl, const KeyedVector<String8, String8> *headers) 93 if (headers == NULL) { 96 // serialize the headers 97 data.writeInt32(headers->size()); 98 for (size_t i = 0; i < headers->size(); ++i) { 99 data.writeString8(headers->keyAt(i)); 100 data.writeString8(headers->valueAt(i)); 186 KeyedVector<String8, String8> headers; local 191 headers.add(key, value); 195 setDataSource(srcUrl, numHeaders > 0 ? &headers : NULL)) [all...] |
/frameworks/base/media/libmediaplayerservice/ |
MidiMetadataRetriever.h | 35 const char *url, const KeyedVector<String8, String8> *headers);
|
/frameworks/base/obex/javax/obex/ |
Operation.java | 58 * <STRONG>How Headers are Handled</STRONG> 60 * As headers are received, they may be retrieved through the 61 * <code>getReceivedHeaders()</code> method. If new headers are set during the 62 * operation, the new headers will be sent during the next packet exchange. 123 * object. No headers are sent in the abort request. This will end the 131 * Returns the headers that have been received during the operation. 132 * Modifying the object returned has no effect on the headers that are sent 134 * @return the headers received during this <code>Operation</code> 140 * Specifies the headers that should be sent in the next OBEX message that 142 * @param headers the headers to send in the next messag [all...] |
/prebuilt/linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/backward/ |
backward_warning.h | 32 listing of replacement headers and interfaces, consult the file \
|