Deploying to gh-pages from @ 46b98c40be 🚀
This commit is contained in:
@@ -185,10 +185,9 @@ matches. (See <em>Initialization</em> above for an explanation of how routes ar
|
||||
registered.)</li>
|
||||
<li>Scoutcamp invokes a callback with the four parameters:
|
||||
<code>( queryParams, match, end, ask )</code>. This callback is defined in
|
||||
<a href="https://github.com/badges/shields/blob/master/core/base-service/legacy-request-handler.js"><code>legacy-request-handler</code></a>. If the badge result
|
||||
is found in a relatively small in-memory cache, the response is sent
|
||||
immediately. Otherwise a timeout is set to handle unresponsive service
|
||||
code and the next callback is invoked: the legacy handler function.</li>
|
||||
<a href="https://github.com/badges/shields/blob/master/core/base-service/legacy-request-handler.js"><code>legacy-request-handler</code></a>. A timeout is set to
|
||||
handle unresponsive service code and the next callback is invoked: the
|
||||
legacy handler function.</li>
|
||||
<li>The legacy handler function receives
|
||||
<code>( queryParams, match, sendBadge, request )</code>. Its job is to extract data
|
||||
from the regex <code>match</code> and <code>queryParams</code>, invoke <code>request</code> to fetch
|
||||
@@ -225,8 +224,8 @@ coalesce query string overrides with values from the service and the
|
||||
service’s defaults to produce an object that fully describes the badge to
|
||||
be rendered.</li>
|
||||
<li><code>sendBadge</code> is invoked with that object. It does some housekeeping on the
|
||||
timeout and caches the result. Then it renders the badge to svg or raster
|
||||
and pushes out the result over the HTTPS connection.</li>
|
||||
timeout. Then it renders the badge to svg or raster and pushes out the
|
||||
result over the HTTPS connection.</li>
|
||||
</ol>
|
||||
</article>
|
||||
|
||||
@@ -241,7 +240,7 @@ and pushes out the result over the HTTPS connection.</li>
|
||||
<br class="clear">
|
||||
|
||||
<footer>
|
||||
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Sun Jan 10 2021 20:42:11 GMT+0000 (Coordinated Universal Time)
|
||||
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Mon Jan 11 2021 20:54:58 GMT+0000 (Coordinated Universal Time)
|
||||
</footer>
|
||||
|
||||
<script> prettyPrint(); </script>
|
||||
|
||||
Reference in New Issue
Block a user