forked from aws/aws-lambda-dotnet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHostingOptions.cs
More file actions
21 lines (18 loc) · 739 Bytes
/
HostingOptions.cs
File metadata and controls
21 lines (18 loc) · 739 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
using Amazon.Lambda.Core;
namespace Amazon.Lambda.AspNetCoreServer.Hosting;
/// <summary>
/// Options for configuring AWS Lambda hosting for ASP.NET Core
/// </summary>
public class HostingOptions
{
/// <summary>
/// The ILambdaSerializer used by Lambda to convert the incoming event JSON into the .NET event type and serialize the .NET response type
/// back to JSON to return to Lambda.
/// </summary>
public ILambdaSerializer Serializer { get; set; }
/// <summary>
/// The encoding response options sent from the Lambda to the API Gateway.
/// Used to adjust what content types are sent to the API Gatway as binary data
/// </summary>
public IEncodingOptions EncodingOptions { get; set; }
}