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-platform-http/src/lib.rs

cre8-platform-http · module crate root · src · 859 lines (733 code, 34 comment) · sha 3c42a6a2de0075dc

Items

type FetchAgent struct FetchAgent struct FetchRequest struct FetchResponse impl FetchResponse static SHARED const ERROR_DETAIL_KEYS const MAX_ERROR_DETAIL_BYTES struct FailingReader impl Read for FailingReader static SLOT

Functions

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

functionkindlinescyclomaticcallerscalleesweightcrystal
sanitize_error_bodysrc/lib.rs:332fn31341126.1
percent_encode_componentsrc/lib.rs:364fn15349023
truncate_error_bodysrc/lib.rs:391fn1341022.6
fetchsrc/lib.rs:76fn10168220.6
response_error_detail_from_bytessrc/lib.rs:251fn4145113.3
response_error_detailsrc/lib.rs:258fn612312.2
fetch_nativesrc/lib.rs:88fn51139.3
fetch_wasmsrc/lib.rs:195fn253119.3
wasm_fetch_responsesrc/lib.rs:222fn173118.4
wasm_fetch_bodysrc/lib.rs:241fn93107.6
read_bounded_readersrc/lib.rs:381fn92504.9
cached_timeout_agentsrc/lib.rs:34fn61504.7
non_empty_response_bodysrc/lib.rs:265fn42104
json_error_detailsrc/lib.rs:270fn41114
error_detail_from_objectsrc/lib.rs:275fn31113.9
FetchResponse::headersrc/lib.rs:71method311003.8
object_error_detailsrc/lib.rs:279fn42113.8
read_bounded_response_stringsrc/lib.rs:287fn91323.2
native_fetch_requestsrc/lib.rs:95fn51123.1
send_native_fetch_requestsrc/lib.rs:139fn144103.1
native_fetch_responsesrc/lib.rs:166fn103123.1
read_bounded_response_jsonsrc/lib.rs:316fn81412.8
collect_response_headerssrc/lib.rs:157fn71212
read_bounded_response_bytessrc/lib.rs:306fn81212
utf8_response_stringsrc/lib.rs:298fn62202
default_agentsrc/lib.rs:110fn82101.8
with_native_fetch_query_and_headerssrc/lib.rs:120fn124121.8
bounded_fetch_responsesrc/lib.rs:178fn71121.8
bounded_status_fetch_responsesrc/lib.rs:187fn61121.8
should_set_json_content_typesrc/lib.rs:134fn32201.7
serve_oncesrc/lib.rs:413fn494501.6
serve_keep_alivesrc/lib.rs:465fn436100.7
read_bounded_error_bodysrc/lib.rs:326fn51120.6
requests_without_an_agent_reuse_one_connection_for_gets_onlysrc/lib.rs:510fn252020.5
bounded_reader_allows_exact_limitsrc/lib.rs:537fn51010.5
bounded_reader_rejects_oversized_bodysrc/lib.rs:544fn51010.5
FailingReader::readsrc/lib.rs:553trait impl31000.5
bounded_reader_reports_unreadable_responsesrc/lib.rs:559fn51010.5
fetch_response_header_matches_case_insensitivelysrc/lib.rs:566fn101010.5
test_server_handles_connection_closed_before_headerssrc/lib.rs:578fn71010.5
cached_timeout_agent_reuses_slotsrc/lib.rs:587fn91010.5
json_content_type_is_set_only_for_json_without_existing_headersrc/lib.rs:598fn231010.5
bounded_response_readers_decode_strings_json_and_error_bodiessrc/lib.rs:623fn201040.5
fetch_get_collects_status_headers_and_bodysrc/lib.rs:645fn251030.5
fetch_sends_json_string_and_binary_bodiessrc/lib.rs:672fn551020.5
fetch_status_errors_and_transport_errors_are_reportedsrc/lib.rs:729fn381030.5
fetch_rejects_oversized_success_body_and_truncates_oversized_error_body_to_emptysrc/lib.rs:769fn341020.5
error_body_redacts_sensitive_markerssrc/lib.rs:805fn41010.5
error_body_sanitizer_handles_empty_and_unicode_truncation_boundariessrc/lib.rs:811fn71010.5
error_body_redacts_tokenized_provider_urlssrc/lib.rs:820fn41010.5
response_error_detail_extracts_json_error_fields_and_plain_textsrc/lib.rs:826fn91010.5
response_error_detail_from_bytes_is_lossy_and_redacts_sensitive_valuessrc/lib.rs:837fn71010.5
error_body_truncates_large_safe_payloadssrc/lib.rs:846fn61010.5
percent_encode_component_uses_utf8_bytessrc/lib.rs:854fn51010.5

Source not readable from this process.