/
githubmirror
/
axios
Обзор
Документация
Войти
/
githubmirror
/
axios
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v1.13.4
examples/get/server.js
34 строки
656 B
techcodie
docs: refresh CDN URLs and example JSON headers (#7236)
30 дек 2025, 14:30
Не верифицирован
30 дек 2025, 14:30
f869434
Код
Авторство
О чём код?
const people = [ { "name": "Matt Zabriskie", "github": "mzabriskie", "twitter": "mzabriskie", "avatar": "199035" }, { "name": "Ryan Florence", "github": "rpflorence", "twitter": "ryanflorence", "avatar": "100200" }, { "name": "Kent C. Dodds", "github": "kentcdodds", "twitter": "kentcdodds", "avatar": "1500684" }, { "name": "Chris Esplin", "github": "deltaepsilon", "twitter": "chrisesplin", "avatar": "878947" } ]; export default function (req, res) { res.writeHead(200, { 'Content-Type': 'application/json' }); res.write(JSON.stringify(people)); res.end(); };