aboutsummaryrefslogtreecommitdiffstats
path: root/docs/src/templates/docs.js
diff options
context:
space:
mode:
authorIgor Minar2011-06-29 00:25:13 -0700
committerIgor Minar2011-06-30 00:34:50 -0700
commitc5f3a413bc00acf9ac1046fb15b454096a8890c6 (patch)
tree9000f1f5f377d5f022aa8e338dfe810dc913d282 /docs/src/templates/docs.js
parentd3fb5b411e979d0a4815c663c3489652fc5350f9 (diff)
downloadangular.js-c5f3a413bc00acf9ac1046fb15b454096a8890c6.tar.bz2
feat:$xhr: provide access to $xhr header defaults
$xhr header defaults are now exposed as $xhr.defaults.headers.common and $xhr.default.headers.<httpmethod>. This allows applications to configure their defaults as needed. This commit doesn't allow headers to be set per request, only per application. Per request change would require api change, which I tried to avoid *for now*.
Diffstat (limited to 'docs/src/templates/docs.js')
0 files changed, 0 insertions, 0 deletions
an> "build/docs/sitemap.xml", "build/docs/robots.txt", "build/docs/docs-scenario.html", "build/docs/docs-scenario.js", "build/docs/appcache.manifest", "build/docs/.htaccess" ]; var result = ["CACHE MANIFEST", "# " + new Date().toISOString(), "", "# cache all of these", "CACHE:", "../angular.min.js"]; var resultPostfix = ["", "FALLBACK:", "/ /build/docs/index.html", "", "# allow access to google analytics and twitter when we are online", "NETWORK:", "*"]; var promise = fs.listTree(path).then(function(files){ var fileFutures = []; files.forEach(function(file){ fileFutures.push(fs.isFile(file).then(function(isFile){ if (isFile && blackList.indexOf(file) == -1) { return file.replace('build/docs/',''); } })); }); return Q.deep(fileFutures); }).then(function(files){ return result.concat(files.filter(identity)).concat(resultPostfix).join('\n'); }); return promise; } function appCacheTemplate() { return ["CACHE MANIFEST", "# " + new Date().toISOString(), "", "# cache all of these", "CACHE:", "syntaxhighlighter/syntaxhighlighter-combined.js", "../angular.min.js", "docs-combined.js", "docs-keywords.js", "docs-combined.css", "syntaxhighlighter/syntaxhighlighter-combined.css", "img/texture_1.png", "img/yellow_bkgnd.jpg", "", "FALLBACK:", "/ /build/docs/offline.html", "", "# allow access to google analytics and twitter when we are online", "NETWORK:", "*"].join('\n'); }