提交 1c4cf790 编写于 作者: 雪洛's avatar 雪洛

Update http.md

上级 4e6df658
......@@ -195,6 +195,7 @@ content-length: 13
```json
{
"mpserverlessComposedResponse": true, // 使用阿里云返回集成响应是需要此字段为true
"isBase64Encoded": true|false,
"statusCode": httpStatusCode,
"headers": { "headerName": "headerValue", ... },
......@@ -209,6 +210,7 @@ content-length: 13
```js
module.exports.main = function() {
return {
mpserverlessComposedResponse: true, // 使用阿里云返回集成响应是需要此字段为true
statusCode: 200,
headers: {
'content-type': 'text/html'
......@@ -235,6 +237,7 @@ content-length: 14
```js
module.exports.main = function() {
return {
mpserverlessComposedResponse: true, // 使用阿里云返回集成响应是需要此字段为true
statusCode: 200,
headers: {
'content-type': 'application/javascript'
......@@ -261,6 +264,7 @@ console.log("Hello!")
```js
module.exports.main = function() {
return {
mpserverlessComposedResponse: true, // 使用阿里云返回集成响应是需要此字段为true
isBase64Encoded: true,
statusCode: 200,
headers: {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册