File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -68,17 +68,20 @@ type LambdaFunctionURLResponse struct {
68
68
Cookies []string `json:"cookies"`
69
69
}
70
70
71
- // LambdaFunctionURLStreamingResponse models the response to a Lambda Function URL
72
- // used when MODE is TBD
73
- // If the MODE of the Function URL is TBD, use LambdaFunctionURLResponse instead
71
+ // LambdaFunctionURLStreamingResponse models the response to a Lambda Function URL when InvokeMode is RESPONSE_STREAM.
72
+ // If the InvokeMode of the Function URL is BUFFERED (default), use LambdaFunctionURLResponse instead.
74
73
//
75
- // example:
76
- //
77
- // lambda.Start(func(LambdaFunctionURL) (*events.LambdaFunctionURLStreamingResponse, error) {
78
- // return *LambdaFunctionURLStreamingResponse{
74
+ // Example:
79
75
//
76
+ // lambda.Start(func() (*events.LambdaFunctionURLStreamingResponse, error) {
77
+ // return &events.LambdaFunctionURLStreamingResponse{
78
+ // StatusCode: 200,
79
+ // Headers: map[string]string{
80
+ // "Content-Type": "text/html",
81
+ // },
82
+ // Body: strings.NewReader("<html><body>Hello World!</body></html>"),
80
83
// }, nil
81
- // })
84
+ // })
82
85
type LambdaFunctionURLStreamingResponse struct {
83
86
prelude * bytes.Buffer
84
87
You can’t perform that action at this time.
0 commit comments