Deploying to gh-pages from @ f1b643df0d 🚀

This commit is contained in:
repo-ranger[bot]
2021-11-06 11:01:43 +00:00
parent 5777a62947
commit 6bc6363bbe
84 changed files with 95 additions and 96 deletions

View File

@@ -162,7 +162,7 @@ callback with the four parameters <code>( queryParams, match, end, ask )</code>
is created in a legacy helper function in
<a href="https://github.com/badges/shields/blob/master/core/base-service/legacy-request-handler.js"><code>legacy-request-handler.js</code></a>. This callback
delegates to a callback in <code>BaseService.register</code> with four different
parameters <code>( queryParams, match, sendBadge, request )</code>, which
parameters <code>( queryParams, match, sendBadge )</code>, which
then runs <code>BaseService.invoke</code>. <code>BaseService.invoke</code> instantiates the
service and runs <code>BaseService#handle</code>.</p>
</li>
@@ -189,12 +189,12 @@ registered.)</li>
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
whatever data it needs, and then invoke <code>sendBadge</code> with the result.</li>
<code>( queryParams, match, sendBadge )</code>. Its job is to extract data
from the regex <code>match</code> and <code>queryParams</code>, and then invoke <code>sendBadge</code>
with the result.</li>
<li>The implementation of this function is in <code>BaseService.register</code>. It
works by running <code>BaseService.invoke</code>, which instantiates the service,
injects more dependencies, and invokes <code>BaseService#handle</code> which is
injects more dependencies, and invokes <code>BaseService.handle</code> which is
implemented by the service subclass.</li>
<li>The job of <code>handle()</code>, which should be implemented by each service
subclass, is to return an object which partially describes a badge or
@@ -240,7 +240,7 @@ result over the HTTPS connection.</li>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.7</a> on Sat Nov 06 2021 02:41:52 GMT+0000 (Coordinated Universal Time)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.7</a> on Sat Nov 06 2021 11:01:21 GMT+0000 (Coordinated Universal Time)
</footer>
<script> prettyPrint(); </script>