MCPcopy Create free account
hub / github.com/aws/aws-lambda-rust-runtime / as_ref

Method as_ref

lambda-events/src/encodings/http.rs:158–164  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

156impl AsRef<[u8]> for Body {
157 #[inline]
158 fn as_ref(&self) -> &[u8] {
159 match self {
160 Body::Empty => &[],
161 Body::Text(ref bytes) => bytes.as_ref(),
162 Body::Binary(ref bytes) => bytes.as_ref(),
163 }
164 }
165}
166
167impl Clone for Body {

Callers 10

set_originMethod · 0.80
authorizerMethod · 0.80
convert_to_textFunction · 0.80
jsonMethod · 0.80
form_url_encodedMethod · 0.80
derefMethod · 0.80
serializeMethod · 0.80
concurrent_worker_loopFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected