Register encoding options when adding the service to the service collection
Issue:: #1574
Description of changes: Can now register content type for transformation by passing options to the HostingOptions object
Good idea, Very usefull for webp images with api gateway.
@normj Thanks for your feedbacks
I just dit a new commit with following changes :
- Add comments
- Change the namespace of IEncodingOptions and EncodingOptions
For unit tests, what would be the best way to test the injection of IEncodingOptions ?
@CamileDahdah
I just moved the registration of IEncodingOptions to LambdaRuntimeSupportServer level and removed redundant code from each AbstractAspNetCoreFunction<TREQUEST, TRESPONSE> implementations (APIGatewayHttpApiV2MinimalApi, APIGatewayRestApiMinimalApi and ApplicationLoadBalancerMinimalApi)