0
Babelではかなり新しいですし、ヘッダー "Content-Type"を "application/json"としてPOSTリクエストをしようとしています。 Request
のヘッダーを変更するためのドキュメントはありますか?BabelのRequestのデフォルトヘッダーを変更する
import Request from 'request-promise-native'
const result = await Request
.post(`some url`)
.auth(authId, secretToken,false)
.form({
text: "hello"
})
console.log(result);
return JSON.parse(result)
'Request'はバベルのtranspilerとどんな関係があるの? – Bergi