Skip to content
This repository has been archived by the owner on Jul 8, 2023. It is now read-only.

Commit

Permalink
automated build
Browse files Browse the repository at this point in the history
  • Loading branch information
lmammino committed Jun 2, 2023
1 parent 3b73d0c commit ba4a7d6
Show file tree
Hide file tree
Showing 77 changed files with 87 additions and 78 deletions.
2 changes: 1 addition & 1 deletion benchmarks/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/latest/Guides/Benchmarking/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/master/Guides/Benchmarking/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/master/Guides/Ecosystem/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/master/Reference/Request/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
.getValidationFunction('body')
console.log(validate({ foo: 0.5 })) // false
console.log(validate.errors) // validation errors
</code></pre><p>See <a href=#compilevalidationschema>.compilaValidationSchema(schema, [httpStatus])</a> for more information on how to compile validation function.</p><h3 id=compilevalidationschemaschema-httppart>.compileValidationSchema(schema, [httpPart])</h3><p><a id=compilevalidationschema></a></p><p>This function will compile a validation schema and return a function that can be used to validate data. The function returned (a.k.a. <em>validation function</em>) is compiled by using the provided <a href=.././Server#schema-controller><code>SchemaControler#ValidationCompiler</code></a>. A <code>WeakMap</code> is used to cached this, reducing compilation calls.</p><p>The optional parameter <code>httpPart</code>, if provided, is forwarded directly the <code>ValidationCompiler</code>, so it can be used to compile the validation function if a custom <code>ValidationCompiler</code> is provided for the route.</p><p>This function has property errors. Errors encountered during the last validation are assigned to errors</p><pre><code class=language-js>const validate = request
</code></pre><p>See <a href=#compilevalidationschema>.compileValidationSchema(schema, [httpStatus])</a> for more information on how to compile validation function.</p><h3 id=compilevalidationschemaschema-httppart>.compileValidationSchema(schema, [httpPart])</h3><p><a id=compilevalidationschema></a></p><p>This function will compile a validation schema and return a function that can be used to validate data. The function returned (a.k.a. <em>validation function</em>) is compiled by using the provided <a href=.././Server#schema-controller><code>SchemaControler#ValidationCompiler</code></a>. A <code>WeakMap</code> is used to cached this, reducing compilation calls.</p><p>The optional parameter <code>httpPart</code>, if provided, is forwarded directly the <code>ValidationCompiler</code>, so it can be used to compile the validation function if a custom <code>ValidationCompiler</code> is provided for the route.</p><p>This function has property errors. Errors encountered during the last validation are assigned to errors</p><pre><code class=language-js>const validate = request
.compileValidationSchema({
type: &#39;object&#39;,
properties: {
Expand Down
12 changes: 10 additions & 2 deletions docs/master/Reference/Server/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,16 @@
].join(&#39;\r\n&#39;))
}
})
</code></pre><h3 id=rewriteurl><code>rewriteUrl</code></h3><p><a id=rewrite-url></a></p><p>Set a sync callback function that must return a string that allows rewriting URLs.</p><blockquote><p>Rewriting a URL will modify the <code>url</code> property of the <code>req</code> object</p></blockquote><pre><code class=language-js>function rewriteUrl (req) { // req is the Node.js HTTP request
return req.url === &#39;/hi&#39; ? &#39;/hello&#39; : req.url;
</code></pre><h3 id=rewriteurl><code>rewriteUrl</code></h3><p><a id=rewrite-url></a></p><p>Set a sync callback function that must return a string that allows rewriting URLs.</p><blockquote><p>Rewriting a URL will modify the <code>url</code> property of the <code>req</code> object</p></blockquote><pre><code class=language-js>// @param {object} req The raw Node.js HTTP request, not the `FastifyRequest` object.
// @this Fastify The root Fastify instance (not an encapsulated instance).
// @returns {string} The path that the request should be mapped to.
function rewriteUrl (req) {
if (req.url === &#39;/hi&#39;) {
this.log.debug({ originalUrl: req.url, url: &#39;/hello&#39; }, &#39;rewrite url&#39;);
return &#39;/hello&#39;
} else {
return req.url;
}
}
</code></pre><p>Note that <code>rewriteUrl</code> is called <em>before</em> routing, it is not encapsulated and it is an instance-wide configuration.</p><h2 id=instance>Instance</h2><h3 id=server-methods>Server Methods</h3><h4 id=server>server</h4><p><a id=server></a></p><p><code>fastify.server</code>: The Node core <a href=https://nodejs.org/api/http.html#http_class_http_server>server</a> object as returned by the <a href=#factory><strong><code>Fastify factory function</code></strong></a>.</p><h4 id=after>after</h4><p><a id=after></a></p><p>Invoked when the current plugin and all the plugins that have been registered within it have finished loading. It is always executed before the method <code>fastify.ready</code>.</p><pre><code class=language-js>fastify
.register((instance, opts, done) =&gt; {
Expand Down

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/v1.13.x/Benchmarking/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/v1.14.x/Benchmarking/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/v2.0.x/Benchmarking/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/v2.1.x/Benchmarking/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/v2.10.x/Benchmarking/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/v2.11.x/Benchmarking/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/v2.12.x/Benchmarking/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/v2.13.x/Benchmarking/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/v2.14.x/Benchmarking/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/v2.15.x/Benchmarking/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/v2.2.x/Benchmarking/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/v2.3.x/Benchmarking/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/v2.4.x/Benchmarking/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/v2.5.x/Benchmarking/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/v2.6.x/Benchmarking/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/v2.7.x/Benchmarking/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/v2.8.x/Benchmarking/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/v2.9.x/Benchmarking/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/v3.0.x/Benchmarking/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/v3.1.x/Benchmarking/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/v3.10.x/Benchmarking/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/v3.11.x/Benchmarking/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/v3.12.x/Benchmarking/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/v3.13.x/Benchmarking/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/v3.14.x/Benchmarking/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/v3.15.x/Benchmarking/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/v3.16.x/Benchmarking/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/v3.17.x/Benchmarking/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/v3.18.x/Benchmarking/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/v3.19.x/Benchmarking/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/v3.2.x/Benchmarking/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/v3.20.x/Benchmarking/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/v3.21.x/Benchmarking/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/v3.22.x/Benchmarking/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/v3.23.x/Benchmarking/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/v3.24.x/Benchmarking/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/v3.25.x/Guides/Benchmarking/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/v3.26.x/Guides/Benchmarking/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/v3.27.x/Guides/Benchmarking/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/v3.28.x/Guides/Benchmarking/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/v3.29.x/Guides/Benchmarking/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/v3.3.x/Benchmarking/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/v3.4.x/Benchmarking/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/v3.5.x/Benchmarking/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/v3.6.x/Benchmarking/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/v3.7.x/Benchmarking/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/v3.8.x/Benchmarking/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/v3.9.x/Benchmarking/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/v4.0.x/Guides/Benchmarking/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/v4.1.x/Guides/Benchmarking/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/v4.10.x/Guides/Benchmarking/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/v4.11.x/Guides/Benchmarking/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/v4.12.x/Guides/Benchmarking/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/v4.13.x/Guides/Benchmarking/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/v4.14.x/Guides/Benchmarking/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/v4.15.x/Guides/Benchmarking/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/v4.16.x/Guides/Benchmarking/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/v4.17.x/Guides/Benchmarking/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/v4.2.x/Guides/Benchmarking/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/v4.3.x/Guides/Benchmarking/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/v4.4.x/Guides/Benchmarking/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/v4.5.x/Guides/Benchmarking/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/v4.6.x/Guides/Benchmarking/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/v4.7.x/Guides/Benchmarking/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/v4.8.x/Guides/Benchmarking/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/v4.9.x/Guides/Benchmarking/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion ecosystem/index.html

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions images/organisations/codequest.c2d562af57041908.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion organisations/index.html

Large diffs are not rendered by default.

0 comments on commit ba4a7d6

Please sign in to comment.