Skip to content
1 viewer

rust 1,860,549 · typescript 235,540 · javascript 132,956 · python 20,426 · 6,408 files · digest f04d4637f52b · built in 1.5 s · crystals off

crates/cre8-app-network-client/src/client.rs

cre8-app-network-client · module client · src · 1,989 lines (1,710 code, 57 comment) · sha e5917182337ac1c6

Items

const DEFAULT_NETWORK_EGRESS_MAX_RESPONSE_BYTES const DEFAULT_ARTIFACT_EGRESS_MAX_RESPONSE_BYTES const MAX_NETWORK_EGRESS_MAX_RESPONSE_BYTES const MAX_ARTIFACT_EGRESS_MAX_RESPONSE_BYTES enum NetworkEgressClass impl NetworkEgressClass struct NetworkEgressClassSettings const NETWORK_EGRESS_CLASS_ALIASES const ALL_NETWORK_EGRESS_CLASSES struct EgressContext impl EgressContext struct NetworkEgressEvent struct NetworkEgressPolicy enum PolicyAction impl PolicyAction impl NetworkEgressPolicy struct RequestTrace struct RequestTrace struct NetworkClient static CACHE impl Default for NetworkClient impl NetworkClient static CLIENT impl NetworkClient static POLICY static STORE const PRIVATE_OR_LOOPBACK_HOSTS const PRIVATE_OR_LOOPBACK_PREFIXES

Functions

By call-graph weight (PageRank; 1.0 is the average function). 111 functions in all.

functionkindlinescyclomaticcallerscalleesweightcrystal
EgressContext::newsrc/client.rs:164method31185029.2
NetworkClient::sharedsrc/client.rs:499method41182125.9
NetworkClient::newsrc/client.rs:488method1019023.4
NetworkClient::request_json_with_contextsrc/client.rs:711method56342918.7
NetworkClient::post_json_with_contextsrc/client.rs:645method913416
NetworkClient::get_bytes_with_contextsrc/client.rs:809method4221895.5
NetworkClient::record_errorsrc/client.rs:1111method311845.3
NetworkClient::get_json_with_context_querysrc/client.rs:626method1013515.2
redact_destinationsrc/client.rs:1304fn101455.1
NetworkClient::get_json_with_contextsrc/client.rs:622method312314.4
NetworkEgressClass::settingssrc/client.rs:56method4214304.2
NetworkEgressPolicy::from_envsrc/client.rs:250method425344
network_egress_max_response_bytessrc/client.rs:977fn161833.8
NetworkEgressClass::default_timeoutsrc/client.rs:52method31713.7
NetworkClient::preflightsrc/client.rs:1008method251733.7
NetworkClient::record_successsrc/client.rs:1072method381743.7
NetworkClient::fetch_agent_for_tracesrc/client.rs:592method212623.6
egress_policysrc/client.rs:1181fn41513.6
NetworkClient::send_with_contextsrc/client.rs:768method401573.5
safe_request_labelsrc/client.rs:1346fn41513.2
push_audit_eventsrc/client.rs:1201fn82523.2
egress_audit_storesrc/client.rs:1196fn41202.9
is_private_or_loopback_hostsrc/client.rs:1269fn41332.7
NetworkClient::post_bytes_with_contextsrc/client.rs:900method4121392.2
NetworkClient::post_json_ignore_response_with_contextsrc/client.rs:957method911112.1
NetworkClient::agent_for_egresssrc/client.rs:543method61342.1
private_172_hostnamesrc/client.rs:1297fn61202
NetworkClient::get_text_with_contextsrc/client.rs:942method1011212
split_csv_envsrc/client.rs:1210fn121211.9
NetworkClient::enforce_preflight_policysrc/client.rs:1035method122221.6
proxy_agent_cachesrc/client.rs:410fn41201.6
NetworkEgressClass::default_max_response_bytessrc/client.rs:100method62201.6
network_egress_max_response_capsrc/client.rs:995fn62201.6
parse_positive_u64_envsrc/client.rs:1003fn31211.6
split_url_schemesrc/client.rs:1315fn72101.4
redacted_pathsrc/client.rs:1323fn51101.4
redacted_authoritysrc/client.rs:1329fn32101.4
redacted_hostsrc/client.rs:1333fn82101.4
redacted_destination_textsrc/client.rs:1342fn32101.4
parse_class_set_envsrc/client.rs:1241fn31121.4
host_matches_patternsrc/client.rs:1249fn155201.3
NetworkClient::record_blockedsrc/client.rs:1048method231221.3
egress_audit_snapshotsrc/client.rs:1144fn51411.3
normalized_host_for_private_checksrc/client.rs:1274fn31101.3
private_or_loopback_ipsrc/client.rs:1278fn98101.3
private_or_loopback_hostnamesrc/client.rs:1288fn83111.3
NetworkEgressPolicy::evaluatesrc/client.rs:297method101241.3
NetworkClient::guarded_direct_getsrc/client.rs:510method317691.2
NetworkEgressClass::from_labelsrc/client.rs:47method41201.2
url_encodesrc/client.rs:1227fn134201.2
NetworkEgressPolicy::proxy_default_for_classsrc/client.rs:293method31301.1
NetworkClient::get_ok_with_contextsrc/client.rs:971method31411.1
NetworkClient::post_form_with_contextsrc/client.rs:655method5539101.1
EgressContext::resolve_proxy_chainsrc/client.rs:194method31211.1
NetworkClient::agent_for_resolved_egresssrc/client.rs:551method202251
NetworkClient::get_response_with_contextsrc/client.rs:858method322580.9
host_matches_anysrc/client.rs:1245fn31210.9
unique_idsrc/client.rs:1360fn31510.9
NetworkEgressPolicy::check_private_host_policysrc/client.rs:329method64110.8
NetworkEgressPolicy::check_allow_host_policysrc/client.rs:336method63100.8
NetworkEgressPolicy::check_class_policysrc/client.rs:308method114200.8
NetworkEgressPolicy::check_host_policysrc/client.rs:320method82220.8
NetworkEgressPolicy::check_default_actionsrc/client.rs:343method114200.8
EgressContext::with_peer_idsrc/client.rs:188method41410.8
validate_requested_proxy_idsrc/client.rs:426fn123100.8
validate_proxy_chain_shapesrc/client.rs:440fn133100.8
form_urlencodedsrc/client.rs:1223fn31210.7
proxy_agent_hopsrc/client.rs:477fn31100.7
EgressContext::with_proxysrc/client.rs:168method41300.7
validate_proxy_chainsrc/client.rs:416fn81120.7
cached_proxy_agentsrc/client.rs:455fn31110.7
cache_proxy_agentsrc/client.rs:460fn52110.7
build_proxy_agentsrc/client.rs:467fn82130.7
NetworkClient::direct_agent_for_unresolved_proxysrc/client.rs:573method183100.7
policy_for_testssrc/client.rs:1368fn131200.6
proxy_hopsrc/client.rs:1382fn31300.6
egress_status_jsonsrc/client.rs:1150fn292110.6
NetworkEgressPolicy::as_jsonsrc/client.rs:355method301100.6
static_idsrc/client.rs:1364fn31200.6
spawn_http_responsesrc/client.rs:1386fn283200.6
NetworkClient::defaultsrc/client.rs:482trait impl31110.5
NetworkClient::get_jsonsrc/client.rs:614method31110.5
NetworkClient::get_json_with_timeoutsrc/client.rs:618method31110.5
NetworkClient::post_jsonsrc/client.rs:637method31110.5
NetworkClient::post_json_with_timeoutsrc/client.rs:641method31110.5
NetworkClient::post_json_ignore_responsesrc/client.rs:953method31110.5
NetworkClient::get_ok_with_timeoutsrc/client.rs:967method31110.5
unused_loopback_urlsrc/client.rs:1415fn61100.5
NetworkEgressClass::as_strsrc/client.rs:43method31010.5
EgressContext::with_peersrc/client.rs:174method41000.5
PolicyAction::as_strsrc/client.rs:241method62000.5
egress_policysrc/client.rs:1192fn31010.5
egress_class_settings_are_exhaustive_and_parseablesrc/client.rs:1423fn182030.5
request_methods_cover_json_form_bytes_text_status_and_error_pathssrc/client.rs:1443fn8210120.5
convenience_wrappers_and_shared_client_delegate_to_context_methodssrc/client.rs:1527fn6110120.5
preflight_policy_blocks_and_records_without_global_policy_orderingsrc/client.rs:1590fn231050.5
guarded_direct_get_rejects_proxy_before_invoking_transportsrc/client.rs:1615fn121040.5
guarded_direct_get_supplies_and_enforces_response_limitsrc/client.rs:1629fn171050.5
audit_store_prunes_to_policy_limitsrc/client.rs:1648fn262040.5
response_size_limits_use_class_overrides_global_defaults_and_capssrc/client.rs:1676fn291070.5
redact_destination_removes_userinfo_from_audit_targetsrc/client.rs:1707fn91010.5
redact_destination_handles_no_scheme_root_paths_and_ipv6_hostssrc/client.rs:1718fn111010.5
private_host_detection_covers_metadata_and_ipv6_rangessrc/client.rs:1731fn101010.5
policy_checks_cover_class_host_private_and_default_deny_pathssrc/client.rs:1743fn451060.5
policy_from_env_parses_lists_limits_and_proxy_defaultssrc/client.rs:1790fn401050.5
host_matching_and_form_encoding_cover_wildcards_and_reserved_bytessrc/client.rs:1832fn131040.5
audit_snapshot_and_status_include_pushed_eventssrc/client.rs:1847fn291040.5
agent_for_egress_fails_closed_for_missing_empty_mismatch_and_multihop_chainssrc/client.rs:1878fn4710120.5
agent_for_resolved_egress_reports_configured_default_and_invalid_proxy_urlsrc/client.rs:1927fn281060.5
agent_for_egress_builds_and_reuses_single_hop_proxy_agentsrc/client.rs:1957fn1710100.5
private_172_hostname_covers_valid_invalid_and_malformed_octetssrc/client.rs:1981fn81010.5

Source not readable from this process.