diff --git a/Libraries/src/Amazon.Lambda.Annotations/APIGateway/HttpResults.cs b/Libraries/src/Amazon.Lambda.Annotations/APIGateway/HttpResults.cs
index f2c713ece..a8224a32c 100644
--- a/Libraries/src/Amazon.Lambda.Annotations/APIGateway/HttpResults.cs
+++ b/Libraries/src/Amazon.Lambda.Annotations/APIGateway/HttpResults.cs
@@ -3,7 +3,6 @@
using System.IO;
using System.Linq;
using System.Net;
-using Amazon.Lambda.Core;
#if NET6_0_OR_GREATER
using System.Buffers;
using System.Text.Json;
@@ -21,7 +20,7 @@
namespace Amazon.Lambda.Annotations.APIGateway
{
///
- /// The options used by the IHttpResult to serialize into the required format for the event source of the Lambda funtion.
+ /// The options used by the IHttpResult to serialize into the required format for the event source of the Lambda function.
///
public class HttpResultSerializationOptions
{
@@ -55,7 +54,7 @@ public enum ProtocolVersion {
///
/// The API Gateway protocol used as the event source.
- /// RestApi -> RestApiAttrbute
+ /// RestApi -> RestApiAttribute
/// HttpApi -> HttpApiAttribute
///
public ProtocolFormat Format { get; set; }
@@ -272,11 +271,11 @@ public static IHttpResult Ok(object body = null)
/// Creates an IHttpResult for redirect responses.
///
///
- /// This method uses the same logic for determing the the Http status code as the Microsoft.AspNetCore.Http.TypedResults.Redirect uses.
+ /// This method uses the same logic for determining the the Http status code as the Microsoft.AspNetCore.Http.TypedResults.Redirect uses.
/// https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.http.typedresults.redirect
///
/// The URI to redirect to. The value will be set in the location header.
- /// Whether the redirect should be a permanet (301) or temporary (302) redirect.
+ /// Whether the redirect should be a permanent (301) or temporary (302) redirect.
/// Whether the request method should be preserved. If set to true use 308 for permanent or 307 for temporary redirects.
///
public static IHttpResult Redirect(string uri, bool permanent = false, bool preserveMethod = false)
@@ -317,7 +316,8 @@ public static IHttpResult Redirect(string uri, bool permanent = false, bool pres
public static IHttpResult ServiceUnavailable(int? delaySeconds = null)
{
var result = new HttpResults(HttpStatusCode.ServiceUnavailable);
- if (delaySeconds != null && delaySeconds > 0)
+
+ if (delaySeconds > 0)
{
result.AddHeader("Retry-After", delaySeconds.ToString());
}
@@ -488,7 +488,7 @@ private static IDictionary ConvertToV2MultiValueHeaders(IDiction
// See comment at the top about .NET Standard 2.0
#if !NETSTANDARD2_0
- // Class representing the V1 API Gateway response. Very similiar to Amazon.Lambda.APIGatewayEvents.APIGatewayProxyResponse but this library can
+ // Class representing the V1 API Gateway response. Similar to Amazon.Lambda.APIGatewayEvents.APIGatewayProxyResponse but this library can
// not take a dependency on Amazon.Lambda.APIGatewayEvents so it has to have its own version.
internal class APIGatewayV1Response
{
@@ -505,7 +505,7 @@ internal class APIGatewayV1Response
public bool IsBase64Encoded { get; set; }
}
- // Class representing the V2 API Gateway response. Very similiar to Amazon.Lambda.APIGatewayEvents.APIGatewayHttpApiV2ProxyResponse but this library can
+ // Class representing the V2 API Gateway response. Similar to Amazon.Lambda.APIGatewayEvents.APIGatewayHttpApiV2ProxyResponse but this library can
// not take a dependency on Amazon.Lambda.APIGatewayEvents so it has to have its own version.
internal class APIGatewayV2Response
{