Node.js 【Node.js】httpモジュールでWebサーバーを作る|リクエスト処理・ルーティング・JSON返却
Node.jsのhttpモジュールでWebサーバーを作る方法を実機で確認しながら解説します。createServerとlisten、res.end()を呼ばないとハングする罠、req.url/req.methodでのルーティング、JSON返却、POSTボディの受け取り、ステータスコード、Expressとの違いまで整理します。
Node.js
Node.js
Node.js
Node.js
Node.js
PowerShell
PowerShell
PowerShell
PowerShell
PowerShell
PowerShell
PowerShell
PowerShell
PowerShell
PowerShell
PowerShell
PowerShell
PowerShell
JavaScript
JavaScript