Skip to content

Commit 66fe4e5

Browse files
softpropsdavidbarsky
authored andcommitted
correct and expand on lambda-http requestext docs (#81)
1 parent 05190ef commit 66fe4e5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lambda-http/src/ext.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@ pub enum PayloadError {
4242
///
4343
/// You can also access a request's body in deserialized format
4444
/// for payloads sent in `application/x-www-form-urlencoded` or
45-
/// `application/x-www-form-urlencoded` format
45+
/// `application/json` format.
46+
///
47+
/// The following handler will work an http request body of `x=1&y=2`
48+
/// as well as `{"x":1, "y":2}` respectively.
4649
///
4750
/// ```rust,no_run
4851
/// #[macro_use] extern crate lambda_http;

0 commit comments

Comments
 (0)