[ Web Proxy ]
URL:
Viewing: https://developer.mozilla.org/ja/docs/Web/API/Request/text [Back]  [Original]

Request: text() - Web API | MDN

MDN Web Docs

View in English Always switch to English

Request: text()

Baseline

20173

:

text() Request UTF-8

js
text()

TypeError

js
const text = "Hello world";

const request = new Request("/myEndpoint", {
  method: "POST",
  body: text,
});

request.text().then((text) => {
  // 
});

Fetch
# ref-for-dom-body-text


Web Proxy Viewer  |  New URL  |  Original Page