什么是 `response.send`(来自 redux-thunk 的 README.md)?

What is `response.send` (from README.md of redux-thunk)?

Composition section

中查找

它来自哪里?


// This is very useful for server side rendering, because I can wait
// until data is available, then synchronously render the app.

store.dispatch(
  makeSandwichesForEverybody()
).then(() =>
  response.send(ReactDOMServer.renderToString(<MyApp store={store} />))
);

我相信它来自 Javascript XMLHttpRequest

https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/send