Skip to content

Commit b8880d2

Browse files
authored
Minor fixes to README.md (#787)
1 parent 2aa9da4 commit b8880d2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lambda-http/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ We are able to handle requests from:
1717

1818
Thanks to the `Request` type we can seamlessly handle proxy integrations without the worry to specify the specific service type.
1919

20-
There is also an extension for `lambda_http::Request` structs that provide access to [API gateway](https://docs.aws.amazon.com/apigateway/latest/developerguide/set-up-lambda-proxy-integrations.html#api-gateway-simple-proxy-for-lambda-input-format) and [ALB](https://docs.aws.amazon.com/elasticloadbalancing/latest/application/lambda-functions.html) features.
20+
There is also an extension for `lambda_http::Request` structs that provides access to [API gateway](https://docs.aws.amazon.com/apigateway/latest/developerguide/set-up-lambda-proxy-integrations.html#api-gateway-simple-proxy-for-lambda-input-format) and [ALB](https://docs.aws.amazon.com/elasticloadbalancing/latest/application/lambda-functions.html) features.
2121

2222
For example some handy extensions:
2323

@@ -40,7 +40,7 @@ Here you will find a few examples to handle basic scenarios:
4040

4141
### Reading a JSON from a body and deserialize into a structure
4242

43-
The code below creates a simple API Gateway proxy (HTTP, REST) that accept in input a JSON payload.
43+
The code below creates a simple API Gateway proxy (HTTP, REST) that accepts in input a JSON payload.
4444

4545
```rust
4646
use lambda_http::{run, http::{StatusCode, Response}, service_fn, Error, IntoResponse, Request, RequestPayloadExt};
@@ -234,4 +234,4 @@ pub async fn function_handler(dynamodb_client: &aws_sdk_dynamodb::Client, event:
234234

235235
When you integrate HTTP Lambda functions with API Gateway stages, the path received in the request will include the stage as the first segment, for example `/production/api/v1`, where `production` is the API Gateway stage.
236236

237-
If you don't want to receive the stage as part of the path, you can set the environment variable `AWS_LAMBDA_HTTP_IGNORE_STAGE_IN_PATH` to `true`, either in your Lambda function configuration, or inside the `main` Rust function. Following the previous example, when this environment variable is prevent, the path that the function receives is `/api/v1`, eliminating the stage from the first segment.
237+
If you don't want to receive the stage as part of the path, you can set the environment variable `AWS_LAMBDA_HTTP_IGNORE_STAGE_IN_PATH` to `true`, either in your Lambda function configuration, or inside the `main` Rust function. Following the previous example, when this environment variable is present, the path that the function receives is `/api/v1`, eliminating the stage from the first segment.

0 commit comments

Comments
 (0)