1*cf78ab8cSAndroid Build Coastguard Worker // Copyright 2023 Google LLC 2*cf78ab8cSAndroid Build Coastguard Worker // 3*cf78ab8cSAndroid Build Coastguard Worker // Licensed under the Apache License, Version 2.0 (the "License"); 4*cf78ab8cSAndroid Build Coastguard Worker // you may not use this file except in compliance with the License. 5*cf78ab8cSAndroid Build Coastguard Worker // You may obtain a copy of the License at 6*cf78ab8cSAndroid Build Coastguard Worker // 7*cf78ab8cSAndroid Build Coastguard Worker // https://www.apache.org/licenses/LICENSE-2.0 8*cf78ab8cSAndroid Build Coastguard Worker // 9*cf78ab8cSAndroid Build Coastguard Worker // Unless required by applicable law or agreed to in writing, software 10*cf78ab8cSAndroid Build Coastguard Worker // distributed under the License is distributed on an "AS IS" BASIS, 11*cf78ab8cSAndroid Build Coastguard Worker // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12*cf78ab8cSAndroid Build Coastguard Worker // See the License for the specific language governing permissions and 13*cf78ab8cSAndroid Build Coastguard Worker // limitations under the License. 14*cf78ab8cSAndroid Build Coastguard Worker 15*cf78ab8cSAndroid Build Coastguard Worker //! Capture Resource codebase 16*cf78ab8cSAndroid Build Coastguard Worker 17*cf78ab8cSAndroid Build Coastguard Worker pub mod capture; 18*cf78ab8cSAndroid Build Coastguard Worker pub mod captures_handler; 19*cf78ab8cSAndroid Build Coastguard Worker pub mod pcap_util; 20*cf78ab8cSAndroid Build Coastguard Worker /// A mime type for pcap file in HTTP headers. [application/vnd.tcpdump.pcap] 21*cf78ab8cSAndroid Build Coastguard Worker pub const PCAP_MIME_TYPE: &str = "application/vnd.tcpdump.pcap"; 22*cf78ab8cSAndroid Build Coastguard Worker 23*cf78ab8cSAndroid Build Coastguard Worker pub use captures_handler::controller_to_host; 24*cf78ab8cSAndroid Build Coastguard Worker pub use captures_handler::host_to_controller; 25