Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
bmoffatt committed Apr 7, 2023
1 parent 088625d commit 970f751
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions events/lambda_function_urls.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,17 +68,20 @@ type LambdaFunctionURLResponse struct {
Cookies []string `json:"cookies"`
}

// LambdaFunctionURLStreamingResponse models the response to a Lambda Function URL
// used when MODE is TBD
// If the MODE of the Function URL is TBD, use LambdaFunctionURLResponse instead
// LambdaFunctionURLStreamingResponse models the response to a Lambda Function URL when InvokeMode is RESPONSE_STREAM.
// If the InvokeMode of the Function URL is BUFFERED (default), use LambdaFunctionURLResponse instead.
//
// example:
//
// lambda.Start(func(LambdaFunctionURL) (*events.LambdaFunctionURLStreamingResponse, error) {
// return *LambdaFunctionURLStreamingResponse{
// Example:
//
// lambda.Start(func() (*events.LambdaFunctionURLStreamingResponse, error) {
// return &events.LambdaFunctionURLStreamingResponse{
// StatusCode: 200,
// Headers: map[string]string{
// "Content-Type": "text/html",
// },
// Body: strings.NewReader("<html><body>Hello World!</body></html>"),
// }, nil
// })
// })
type LambdaFunctionURLStreamingResponse struct {
prelude *bytes.Buffer

Expand Down

0 comments on commit 970f751

Please sign in to comment.