We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 94c4c59 + 48640be commit 4d9b532Copy full SHA for 4d9b532
src/eventsub/mod.rs
@@ -153,8 +153,8 @@ impl Payload {
153
}
154
155
// FIXME: Should not throwaway headers etc
156
- /// Parse http response as a [Payload].
157
- pub fn parse_response(source: &http::Response<Vec<u8>>) -> Result<Payload, PayloadParseError> {
+ /// Parse http post request as a [Payload].
+ pub fn parse_http(source: &http::Request<Vec<u8>>) -> Result<Payload, PayloadParseError> {
158
Payload::parse(std::str::from_utf8(source.body())?)
159
160
0 commit comments