You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: de/guide/using-middleware.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ redirect_from: " "
10
10
11
11
Express ist ein Weiterleitungs- und Middleware-Web-Framework, das selbst nur minimale Funktionalität aufweist: Eine Express-Anwendung besteht im Wesentlichen aus einer Reihe von Middlewarefunktionsaufrufen.
12
12
13
-
_Middlewarefunktionen_ sind Funktionen, die Zugriff auf das [Anforderungsobjekt](/{{ page.lang }}/4x/api.html#req) (`req`), das [Antwortobjekt](/{{ page.lang }}/4x/api.html#res) (`res`) und die nächste Middlewarefunktion im Anforderung/Antwort-Zyklus der Anwendung haben. Die nächste Middlewarefunktion wird im Allgemeinen durch die Variable `next` bezeichnet.
13
+
_Middleware_ functions are functions that have access to the [request object](/{{ page.lang }}/5x/api.html#req) (`req`), the [response object](/{{ page.lang }}/5x/api.html#res) (`res`), and the next middleware function in the application's request-response cycle. Die nächste Middlewarefunktion wird im Allgemeinen durch die Variable `next` bezeichnet.
14
14
15
15
Über Middlewarefunktionen lassen sich die folgenden Tasks ausführen:
16
16
@@ -34,7 +34,7 @@ Sie können auch eine Reihe von Middlewarefunktionen zusammen laden. Dadurch wir
34
34
35
35
<h2id='middleware.application'>Middleware auf Anwendungsebene</h2>
36
36
37
-
Binden Sie Middleware auf Anwendungsebene zu einer Instanz des [Anwendungsobjekts](/{{ page.lang }}/4x/api.html#app), indem Sie die Funktionen `app.use()`und`app.METHOD()`verwenden. `METHOD`ist dabei die HTTP-Methode der Anforderung, die die Middlewarefunktion in Kleinschreibung verarbeitet (wie GET, PUT oder POST).
37
+
Bind application-level middleware to an instance of the [app object](/{{ page.lang }}/5x/api.html#app) by using the `app.use()`and`app.METHOD()`functions, where `METHOD`is the HTTP method of the request that the middleware function handles (such as GET, PUT, or POST) in lowercase.
38
38
39
39
Dieses Beispiel zeigt eine Middlewarefunktion ohne Mountpfad. Die Funktion wird immer dann ausgeführt, wenn die Anwendung eine Anforderung erhält.
40
40
@@ -248,9 +248,9 @@ Seit Version 4.x bestehen bei Express keine Abhängigkeiten zu [Connect](https:/
248
248
249
249
Die einzige integrierte Middlewarefunktion in Express ist `express.static`.
250
250
251
-
-[express.static](/en/4x/api.html#express.static) serves static assets such as HTML files, images, and so on.
252
-
-[express.json](/en/4x/api.html#express.json) parses incoming requests with JSON payloads. **NOTE: Available with Express 4.16.0+**
253
-
-[express.urlencoded](/en/4x/api.html#express.urlencoded) parses incoming requests with URL-encoded payloads. **NOTE: Available with Express 4.16.0+**
251
+
-[express.static](/en/5x/api.html#express.static) serves static assets such as HTML files, images, and so on.
252
+
-[express.json](/en/5x/api.html#express.json) parses incoming requests with JSON payloads. **NOTE: Available with Express 4.16.0+**
253
+
-[express.urlencoded](/en/5x/api.html#express.urlencoded) parses incoming requests with URL-encoded payloads. **NOTE: Available with Express 4.16.0+**
Copy file name to clipboardExpand all lines: es/guide/using-middleware.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ redirect_from: " "
10
10
11
11
Express es una infraestructura web de direccionamiento y middleware que tiene una funcionalidad mínima propia: una aplicación Express es fundamentalmente una serie de llamadas a funciones de middleware.
12
12
13
-
Las funciones de _middleware_ son funciones que tienen acceso al [objeto de solicitud](/{{ page.lang }}/4x/api.html#req) (`req`), al [objeto de respuesta](/{{ page.lang }}/4x/api.html#res) (`res`) y a la siguiente función de middleware en el ciclo de solicitud/respuestas de la aplicación. La siguiente función de middleware se denota normalmente con una variable denominada `next`.
13
+
_Middleware_ functions are functions that have access to the [request object](/{{ page.lang }}/5x/api.html#req) (`req`), the [response object](/{{ page.lang }}/5x/api.html#res) (`res`), and the next middleware function in the application's request-response cycle. La siguiente función de middleware se denota normalmente con una variable denominada `next`.
14
14
15
15
Las funciones de middleware pueden realizar las siguientes tareas:
16
16
@@ -34,7 +34,7 @@ También puede cargar una serie de funciones de middleware a la vez, lo que crea
Enlace el middleware de nivel de aplicación a una instancia del [objeto de aplicación](/{{ page.lang }}/4x/api.html#app) utilizando las funciones`app.use()`y`app.METHOD()`, donde`METHOD`es el método HTTP de la solicitud que maneja la función de middleware (por ejemplo, GET, PUT o POST) en minúsculas.
37
+
Bind application-level middleware to an instance of the [app object](/{{ page.lang }}/5x/api.html#app) by using the`app.use()`and`app.METHOD()` functions, where`METHOD`is the HTTP method of the request that the middleware function handles (such as GET, PUT, or POST) in lowercase.
38
38
39
39
Este ejemplo muestra una función de middleware sin ninguna vía de acceso de montaje. The function is executed every time the app receives a request.
40
40
@@ -247,9 +247,9 @@ Desde la versión 4.x, Express ya no depende de [Connect](https://github.com/sen
247
247
248
248
La única función de middleware incorporado en Express es `express.static`.
249
249
250
-
-[express.static](/en/4x/api.html#express.static) serves static assets such as HTML files, images, and so on.
251
-
-[express.json](/en/4x/api.html#express.json) parses incoming requests with JSON payloads. **NOTE: Available with Express 4.16.0+**
252
-
-[express.urlencoded](/en/4x/api.html#express.urlencoded) parses incoming requests with URL-encoded payloads. **NOTE: Available with Express 4.16.0+**
250
+
-[express.static](/en/5x/api.html#express.static) serves static assets such as HTML files, images, and so on.
251
+
-[express.json](/en/5x/api.html#express.json) parses incoming requests with JSON payloads. **NOTE: Available with Express 4.16.0+**
252
+
-[express.urlencoded](/en/5x/api.html#express.urlencoded) parses incoming requests with URL-encoded payloads. **NOTE: Available with Express 4.16.0+**
Copy file name to clipboardExpand all lines: fr/guide/using-middleware.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ redirect_from: " "
10
10
11
11
Express est une infrastructure web middleware et de routage, qui a des fonctions propres minimes : une application Express n'est ni plus ni moins qu'une succession d'appels de fonctions middleware.
12
12
13
-
Les fonctions de _middleware_ sont des fonctions qui peuvent accéder à l'[objet Request](/{{ page.lang }}/4x/api.html#req) (`req`), l'[objet response](/{{ page.lang }}/4x/api.html#res) (`res`) et à la fonction middleware suivant dans le cycle demande-réponse de l'application. La fonction middleware suivant est couramment désignée par une variable nommée `next`.
13
+
_Middleware_ functions are functions that have access to the [request object](/{{ page.lang }}/5x/api.html#req) (`req`), the [response object](/{{ page.lang }}/5x/api.html#res) (`res`), and the next middleware function in the application's request-response cycle. La fonction middleware suivant est couramment désignée par une variable nommée `next`.
14
14
15
15
Les fonctions middleware effectuent les tâches suivantes :
16
16
@@ -34,7 +34,7 @@ Vous pouvez également charger une série de fonctions middleware ensemble, ce q
34
34
35
35
<h2id='middleware.application'>Middleware niveau application</h2>
36
36
37
-
Liez le middleware niveau application à une instance de l'objet[app object](/{{ page.lang }}/4x/api.html#app) en utilisant les fonctions `app.use()`et`app.METHOD()`, où`METHOD`est la méthode HTTP de la demande que gère la fonction middleware (par exemple GET, PUT ou POST) en minuscules.
37
+
Bind application-level middleware to an instance of the[app object](/{{ page.lang }}/5x/api.html#app) by using the `app.use()`and`app.METHOD()` functions, where`METHOD`is the HTTP method of the request that the middleware function handles (such as GET, PUT, or POST) in lowercase.
38
38
39
39
Cet exemple illustre une fonction middleware sans chemin de montage. La fonction est exécutée à chaque fois que l'application reçoit une demande.
40
40
@@ -249,9 +249,9 @@ précédemment incluses à Express' font désormais partie de modules distincts.
249
249
250
250
La seule fonction middleware intégrée dans Express est `express.static`.
251
251
252
-
-[express.static](/en/4x/api.html#express.static) serves static assets such as HTML files, images, and so on.
253
-
-[express.json](/en/4x/api.html#express.json) parses incoming requests with JSON payloads. **NOTE: Available with Express 4.16.0+**
254
-
-[express.urlencoded](/en/4x/api.html#express.urlencoded) parses incoming requests with URL-encoded payloads. **NOTE: Available with Express 4.16.0+**
252
+
-[express.static](/en/5x/api.html#express.static) serves static assets such as HTML files, images, and so on.
253
+
-[express.json](/en/5x/api.html#express.json) parses incoming requests with JSON payloads. **NOTE: Available with Express 4.16.0+**
254
+
-[express.urlencoded](/en/5x/api.html#express.urlencoded) parses incoming requests with URL-encoded payloads. **NOTE: Available with Express 4.16.0+**
Copy file name to clipboardExpand all lines: it/guide/using-middleware.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ redirect_from: " "
10
10
11
11
Express è un framework Web di routing e middleware, con funzionalità sua propria minima: un'applicazione Express è essenzialmente a serie di chiamate a funzioni middleware.
12
12
13
-
Le funzioni _middleware_ sono funzioni con accesso all'[oggetto richiesta](/{{ page.lang }}/4x/api.html#req) (`req`), all'[oggetto risposta](/{{ page.lang }}/4x/api.html#res) (`res`) e alla successiva funzione middleware nel ciclo richiesta-risposta dell'applicazione. La successiva funzione middleware viene comunemente denotata da una variabile denominata `next`.
13
+
_Middleware_ functions are functions that have access to the [request object](/{{ page.lang }}/5x/api.html#req) (`req`), the [response object](/{{ page.lang }}/5x/api.html#res) (`res`), and the next middleware function in the application's request-response cycle. La successiva funzione middleware viene comunemente denotata da una variabile denominata `next`.
14
14
15
15
Le funzioni middleware possono eseguire le attività elencate di seguito:
16
16
@@ -34,7 +34,7 @@ Un'applicazione Express può utilizzare i seguenti tipi di middleware:
34
34
35
35
<h2id='middleware.application'>Middleware a livello dell'applicazione</h2>
36
36
37
-
Associare il middleware al livello dell'applicazione ad un'istanza dell'[oggetto app](/{{ page.lang }}/4x/api.html#app) utilizzando le funzioni`app.use()`e`app.METHOD()`, dove`METHOD`corrisponde al metodo HTTP della richiesta che la funzione middleware gestisce (ad esempio GET, PUT o POST) in lettere minuscole.
37
+
Bind application-level middleware to an instance of the [app object](/{{ page.lang }}/5x/api.html#app) by using the`app.use()`and`app.METHOD()` functions, where`METHOD`is the HTTP method of the request that the middleware function handles (such as GET, PUT, or POST) in lowercase.
38
38
39
39
Questo esempio presenta una funzione middleware senza percorso di montaggio. La funzione viene eseguita ogni volta che l'app riceve una richiesta.
40
40
@@ -249,9 +249,9 @@ middleware che prima erano state incluse in Express, ora sono in moduli separati
249
249
250
250
L'unica funzione middleware integrata in Express è `express.static`.
251
251
252
-
-[express.static](/en/4x/api.html#express.static) serves static assets such as HTML files, images, and so on.
253
-
-[express.json](/en/4x/api.html#express.json) parses incoming requests with JSON payloads. **NOTE: Available with Express 4.16.0+**
254
-
-[express.urlencoded](/en/4x/api.html#express.urlencoded) parses incoming requests with URL-encoded payloads. **NOTE: Available with Express 4.16.0+**
252
+
-[express.static](/en/5x/api.html#express.static) serves static assets such as HTML files, images, and so on.
253
+
-[express.json](/en/5x/api.html#express.json) parses incoming requests with JSON payloads. **NOTE: Available with Express 4.16.0+**
254
+
-[express.urlencoded](/en/5x/api.html#express.urlencoded) parses incoming requests with URL-encoded payloads. **NOTE: Available with Express 4.16.0+**
255
255
256
256
<h2id='middleware.third-party'>Middleware di terzi</h2>
Copy file name to clipboardExpand all lines: ja/guide/using-middleware.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ redirect_from: " "
10
10
11
11
Express は、それ自体では最小限の機能を備えたルーティングとミドルウェアの Web フレームワークです。Express アプリケーションは基本的に一連のミドルウェア関数呼び出しです。
12
12
13
-
_ミドルウェア_ 関数は、[requestオブジェクト](/{{ page.lang }}/4x/api.html#req) (`req`)、[responseオブジェクト](/{{ page.lang }}/4x/api.html#res) (`res`)、およびアプリケーションのリクエストレスポンスサイクルにおける次のミドルウェア関数に対するアクセス権限を持つ関数です。次のミドルウェア関数は一般的に、`next` という変数で表されます。 The next middleware function is commonly denoted by a variable named `next`.
13
+
_Middleware_ functions are functions that have access to the [request object](/{{ page.lang }}/5x/api.html#req) (`req`), the [response object](/{{ page.lang }}/5x/api.html#res) (`res`), and the next middleware function in the application's request-response cycle. The next middleware function is commonly denoted by a variable named `next`.
14
14
15
15
ミドルウェア関数は以下のタスクを実行できます。
16
16
@@ -35,7 +35,7 @@ You can also load a series of middleware functions together, which creates a sub
Bind application-level middleware to an instance of the [app object](/{{ page.lang }}/5x/api.html#app) by using the `app.use()` and `app.METHOD()` functions, where `METHOD` is the HTTP method of the request that the middleware function handles (such as GET, PUT, or POST) in lowercase.
39
39
40
40
This example shows a middleware function with no mount path. The function is executed every time the app receives a request.
41
41
@@ -249,9 +249,9 @@ Starting with version 4.x, Express no longer depends on [Connect](https://github
-[express.json](/en/4x/api.html#express.json)はJSONペイロードで受信したリクエストを解析します。**注:Express 4.16.0以降で利用可能****NOTE: Available with Express 4.16.0+**
254
-
-[express.urlencoded](/en/4x/api.html#express.urlencoded)は、URLエンコードされたペイロードで受信したリクエストを解析します。**注:Express 4.16.0以降で利用可能****NOTE: Available with Express 4.16.0+**
252
+
-[express.static](/en/5x/api.html#express.static)serves static assets such as HTML files, images, and so on.
253
+
-[express.json](/en/5x/api.html#express.json)parses incoming requests with JSON payloads.**NOTE: Available with Express 4.16.0+**
254
+
-[express.urlencoded](/en/5x/api.html#express.urlencoded)parses incoming requests with URL-encoded payloads.**NOTE: Available with Express 4.16.0+**
Copy file name to clipboardExpand all lines: ko/guide/using-middleware.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ redirect_from: " "
10
10
11
11
Express는 자체적인 최소한의 기능을 갖춘 라우팅 및 미들웨어 웹 프레임워크이며, Express 애플리케이션은 기본적으로 일련의 미들웨어 함수 호출입니다.
12
12
13
-
_미들웨어_ 함수는 [요청 오브젝트](/{{ page.lang }}/4x/api.html#req)(`req`), [응답 오브젝트](/{{ page.lang }}/4x/api.html#res) (`res`), 그리고 애플리케이션의 요청-응답 주기 중 그 다음의 미들웨어 함수 대한 액세스 권한을 갖는 함수입니다. 그 다음의 미들웨어 함수는 일반적으로 `next`라는 이름의 변수로 표시됩니다.
13
+
_Middleware_ functions are functions that have access to the [request object](/{{ page.lang }}/5x/api.html#req)(`req`), the [response object](/{{ page.lang }}/5x/api.html#res) (`res`), and the next middleware function in the application's request-response cycle. 그 다음의 미들웨어 함수는 일반적으로 `next`라는 이름의 변수로 표시됩니다.
14
14
15
15
미들웨어 함수는 다음과 같은 태스크를 수행할 수 있습니다.
16
16
@@ -34,7 +34,7 @@ Express 애플리케이션은 다음과 같은 유형의 미들웨어를 사용
34
34
35
35
<h2id='middleware.application'>애플리케이션 레벨 미들웨어</h2>
36
36
37
-
`app.use()` 및 `app.METHOD()` 함수를 이용해 애플리케이션 미들웨어를 [앱 오브젝트](/{{ page.lang }}/4x/api.html#app)의 인스턴스에 바인드하십시오. 이때 `METHOD`는 미들웨어 함수가 처리하는 요청(GET, PUT 또는 POST 등)의 소문자로 된 HTTP 메소드입니다.
37
+
Bind application-level middleware to an instance of the [app object](/{{ page.lang }}/5x/api.html#app) by using the `app.use()` and `app.METHOD()` functions, where `METHOD` is the HTTP method of the request that the middleware function handles (such as GET, PUT, or POST) in lowercase.
38
38
39
39
다음 예에는 마운트 경로가 없는 미들웨어 함수가 표시되어 있습니다. 이 함수는 앱이 요청을 수신할 때마다 실행됩니다.
0 commit comments