Home
last modified time | relevance | path

Searched refs:body (Results 1 – 13 of 13) sorted by relevance

/webrtc/mdns/src/message/resource/
H A Dmod.rs42 pub body: Option<Box<dyn ResourceBody>>, field
51 if let Some(body) = &self.body { in fmt()
52 body.to_string() in fmt()
68 if let Some(body) = &self.body { in pack()
69 self.header.typ = body.real_type(); in pack()
75 if let Some(body) = &self.body { in pack()
76 msg = body.pack(msg, compression, compression_off)?; in pack()
86 self.body = Some(rb); in unpack()
/webrtc/mdns/src/message/
H A Dmessage_test.rs99 body: Some(Box::new(AaaaResource { in large_test_msg()
121 body: Some(Box::new(SoaResource { in large_test_msg()
138 body: Some(Box::new(PtrResource { in large_test_msg()
149 body: Some(Box::new(MxResource { in large_test_msg()
161 body: Some(Box::new(SrvResource { in large_test_msg()
177 body: Some(Box::new(NsResource { in large_test_msg()
188 body: Some(Box::new(NsResource { in large_test_msg()
765 body: Some(Box::new(TxtResource { in test_very_long_txt()
782 got.body = Some(body); in test_very_long_txt()
1092 body: None, in test_resource_pack()
[all …]
H A Dbuilder.rs175 if let Some(body) = &r.body { in add_resource()
176 r.header.typ = body.real_type(); in add_resource()
184 if let Some(body) = &r.body { in add_resource()
185 msg = body.pack(msg, &mut self.compression, self.start)?; in add_resource()
H A Dparser.rs63 let (body, off) = in resource()
69 body: Some(body), in resource()
/webrtc/dtls/src/crypto/
H A Dcrypto_cbc.rs100 let body = &r[RECORD_LAYER_HEADER_SIZE..]; in decrypt() localVariable
101 let iv = &body[0..Self::BLOCK_SIZE]; in decrypt()
102 let body = &body[Self::BLOCK_SIZE..]; in decrypt() localVariable
107 let decrypted = read_cbc.decrypt_vec(body)?; in decrypt()
/webrtc/examples/examples/ice-restart/
H A Dice-restart.rs37 .body(NOTFOUND.into()) in not_found()
46 let body = Body::wrap_stream(stream); in simple_file_send() localVariable
47 return Ok(Response::new(body)); in simple_file_send()
142 let sdp_str = match std::str::from_utf8(&hyper::body::to_bytes(req.into_body()).await?) { in do_signaling()
185 .body(Body::from(payload)) in do_signaling()
/webrtc/examples/examples/play-from-disk-renegotiation/
H A Dplay-from-disk-renegotiation.rs47 .body(NOTFOUND.into()) in not_found()
56 let body = Body::wrap_stream(stream); in simple_file_send() localVariable
57 return Ok(Response::new(body)); in simple_file_send()
94 let sdp_str = match std::str::from_utf8(&hyper::body::to_bytes(req.into_body()).await?) { in do_signaling()
137 .body(Body::from(payload)) in do_signaling()
/webrtc/ice/examples/
H A Dping_pong.rs46 match std::str::from_utf8(&hyper::body::to_bytes(req.into_body()).await?) { in remote_handler()
61 match std::str::from_utf8(&hyper::body::to_bytes(req.into_body()).await?) { in remote_handler()
216 .body(Body::from(c.marshal())) in main()
254 .body(Body::from(format!("{local_ufrag}:{local_pwd}"))) in main()
/webrtc/examples/examples/offer-answer/
H A Doffer.rs44 .body(Body::from(payload)) in signal_candidate()
83 match std::str::from_utf8(&hyper::body::to_bytes(req.into_body()).await?) { in remote_handler()
106 let sdp_str = match std::str::from_utf8(&hyper::body::to_bytes(req.into_body()).await?) in remote_handler()
349 .body(Body::from(payload)) in main()
H A Danswer.rs45 .body(Body::from(payload)) in signal_candidate()
84 match std::str::from_utf8(&hyper::body::to_bytes(req.into_body()).await?) { in remote_handler()
107 let sdp_str = match std::str::from_utf8(&hyper::body::to_bytes(req.into_body()).await?) in remote_handler()
142 .body(Body::from(payload)) in remote_handler()
/webrtc/examples/examples/signal/src/
H A Dlib.rs26 let sdp_str = match std::str::from_utf8(&hyper::body::to_bytes(req.into_body()).await?) in remote_handler()
/webrtc/mdns/src/conn/
H A Dmod.rs405 body: Some(Box::new(AResource { in send_answer()
/webrtc/
H A DCargo.lock1181 name = "http-body"
1233 "http-body",