Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ jobs:
--exclude-path dist/llms.txt
--exclude-path dist/llms/
--exclude-private
--exclude-loopback
--remap "https://expressjs\.com\/((?:[^\/]+\/)*[^\/\.]+)\/?$ file://$PWD/dist/\$1/index.html"
--remap "https://expressjs\.com\/(.*\.html)$ file://$PWD/dist/\$1"
dist/
Expand Down
31 changes: 16 additions & 15 deletions .lycheeignore
Original file line number Diff line number Diff line change
@@ -1,28 +1,29 @@
# Prevent rate limit for npmjs links

http://npmjs.com/.*
https://npmjs.com/.*
https://www.npmjs.com/.*
https://npmjs.org/.*
https://www.npmjs.org/.*
^https?://(www\.)?npmjs\.(com|org)/

# Prevent github rate limit
https://github.com/.*
^https://github\.com/

# Exclude 404 pages
dist/.*/404/index.html$
dist/404/index.html$
dist/(.*/)?404((/index)?\.html|/)$

# Exclude Open Collective links
https://opencollective.com/.*
^https://opencollective\.com/

# Prevent netlify rate limit
https://www.netlify.com/

## Ignore temporaly sitemap
https://expressjs.com/sitemap-index.xml
^https://www\.netlify\.com/

# Ignore Coveralls links
^https://coveralls\.io/

# Prevent LinkedIn rate limit
^https://www\.linkedin\.com/sharing/share-offsite/
# LinkedIn profiles that exist return 404 if not logged in, but it's also easy to hit a rate limit
^https://www\.linkedin\.com/in/

https://coveralls.io/-*
# Ignore slack invite 403 (this will cause us to miss link invite expiration too)
^https://slack-invite\.openjsf\.org/

# Oracle pages return 403 when connected
^https://www\.mysql\.com/
^https://www\.oracle\.com/
4 changes: 2 additions & 2 deletions src/content/api/3x/api/application/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ console.log(app.locals.name);
// => if name's variable is used in a template, a ReferenceError will be returned.
```

The full list of native named properties can be found in many specifications. The <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference">JavaScript specification</a> introduced original properties, some of which still recognized by modern engines, and the <a href="http://www.ecma-international.org/ecma-262/5.1/">EcmaScript specification</a> then built on it and normalized the set of properties, adding new ones and removing deprecated ones. Check out properties for Functions and Objects if interested.
The full list of native named properties can be found in many specifications. The <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference">JavaScript specification</a> introduced original properties, some of which still recognized by modern engines, and the <a href="https://262.ecma-international.org/5.1/">EcmaScript specification</a> then built on it and normalized the set of properties, adding new ones and removing deprecated ones. Check out properties for Functions and Objects if interested.

By default Express exposes only a single app-level local variable, `settings`.

Expand Down Expand Up @@ -540,7 +540,7 @@ app.render('email', { name: 'Tobi' }, function (err, html) {
### app.listen()

Bind and listen for connections on the given host and port,
this method is identical to node's <a href="http://nodejs.org/api/http.html#http_server_listen_port_hostname_backlog_callback">http.Server#listen()</a>.
this method is identical to node's <a href="https://nodejs.org/api/http.html#serverlisten">http.Server#listen()</a>.

```js
var express = require('express');
Expand Down
4 changes: 2 additions & 2 deletions src/content/api/3x/api/request/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ where "proxy2" is the furthest down-stream.
This property is much like `req.url`, however it retains
the original request url, allowing you to rewrite `req.url`
freely for internal routing purposes. For example the "mounting" feature
of <a href="#app.use">app.use()</a> will rewrite `req.url` to
of [app.use()](/en/3x/api/application/#appusepath-function) will rewrite `req.url` to
strip the mount point.

```js
Expand Down Expand Up @@ -243,7 +243,7 @@ console.dir(req.query.shoe.type);

### req.res

This property holds a reference to the <a href="#response">response object</a>
This property holds a reference to the [response object](/en/3x/api/response/)
that relates to this request object.

### req.route
Expand Down
10 changes: 5 additions & 5 deletions src/content/api/3x/api/response/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ res.send('<p>some html</p>');

Response local variables are scoped to the request, thus only
available to the view(s) rendered during that request / response
cycle, if any. Otherwise this API is identical to <a href="#app.locals">app.locals</a>.
cycle, if any. Otherwise this API is identical to [app.locals](/en/3x/api/application/#applocals).

This object is useful for exposing request-level information such as the
request pathname, authenticated user, user settings etcetera.
Expand All @@ -39,7 +39,7 @@ app.use(function (req, res, next) {

### res.req

This property holds a reference to the <a href="#request">request object</a>
This property holds a reference to the [request object](/en/3x/api/request/)
that relates to this response object.

## Methods
Expand Down Expand Up @@ -106,7 +106,7 @@ to sign the value.
res.cookie('name', 'tobi', { signed: true });
```

Later you may access this value through the <a href="#req.signedCookies">req.signedCookie</a>
Later you may access this value through the [req.signedCookie](/en/3x/api/request/#reqsignedcookies)
object.

### res.download(path, [filename], [fn])
Expand Down Expand Up @@ -230,7 +230,7 @@ res.jsonp(500, { error: 'message' });
```

By default the JSONP callback name is simply `callback`,
however you may alter this with the <a href="#app-settings">jsonp callback name</a>
however you may alter this with the [jsonp callback name](/en/3x/api/application/#settings)
setting. The following are some examples of JSONP responses using the same
code:

Expand Down Expand Up @@ -302,7 +302,7 @@ Express supports a few forms of redirection, first being
a fully qualified URI for redirecting to a different site:

```js
res.redirect('http://google.com');
res.redirect('https://google.com');
```

The second form is the pathname-relative redirect, for example
Expand Down
Loading
Loading