レスポンスのContent-Typeをtext/plainにして出力する方法。
app.get('/', function(request, response) {
response.header('Content-Type', 'text/plain;charset=utf-8');
response.end('プレーンテキスト');
});
More than 5 years have passed since last update.
レスポンスのContent-Typeをtext/plainにして出力する方法。
app.get('/', function(request, response) {
response.header('Content-Type', 'text/plain;charset=utf-8');
response.end('プレーンテキスト');
});
Register as a new user and use Qiita more conveniently