MCPcopy Create free account

hub / github.com/LeenHawk/sgproxy / functions

Functions165 in github.com/LeenHawk/sgproxy

↓ 1 callersMethodlist_usage
(&self)
src/do_state.rs:132
↓ 1 callersFunctionmaybe_prepare_request
( req: &mut Request, credential: &CredentialConfig, )
src/proxy.rs:371
↓ 1 callersFunctionmaybe_refresh_claudecode_access_token
( credential: &CredentialConfig, )
src/oauth.rs:292
↓ 1 callersFunctionmerge_status_for_view
( credential: &CredentialConfig, usage: &CredentialUsageSnapshot, now: u64, )
src/state.rs:223
↓ 1 callersFunctionnext_order
(credentials: &[CredentialConfig], channel: ChannelKind)
src/state.rs:55
↓ 1 callersMethodoauth_callback
(&self, payload: OAuthCallbackInput)
src/do_state.rs:224
↓ 1 callersMethodoauth_start
(&self, payload: OAuthStartInput)
src/do_state.rs:216
↓ 1 callersFunctionoauth_start_claudecode
(input: OAuthStartInput)
src/oauth.rs:134
↓ 1 callersFunctionparse_profile
(profile: OAuthProfile)
src/oauth.rs:427
↓ 1 callersFunctionparse_rate_limit_utilization
(raw: &str)
src/proxy.rs:313
↓ 1 callersFunctionparse_unix_ms
(raw: Option<&str>)
src/state.rs:403
↓ 1 callersFunctionparse_usage_payload
(payload: UsagePayload)
src/oauth.rs:461
↓ 1 callersFunctionprovided_api_token
(headers: &Headers)
src/do_state.rs:810
↓ 1 callersMethodproxy
(&self, req: Request)
src/do_state.rs:286
↓ 1 callersMethodpublic_credentials
(&self)
src/do_state.rs:125
↓ 1 callersFunctionrecord_success
(doc: &mut DurableStateDoc, id: &str, now: u64)
src/state.rs:178
↓ 1 callersFunctionremove_magic_trigger_tokens
(text: &mut String)
src/proxy.rs:976
↓ 1 callersFunctionrequest_body_should_be_rewritten
(req: &Request)
src/proxy.rs:420
↓ 1 callersFunctionrequest_claudecode_version
(req: &Request)
src/proxy.rs:465
↓ 1 callersFunctionresolve_code_and_state
(payload: &OAuthCallbackInput)
src/oauth.rs:164
↓ 1 callersMethodresolve_proxy_credential
( &self, doc: &mut DurableStateDoc, )
src/do_state.rs:369
↓ 1 callersMethodroute
(&self, method: Method, path: &str, mut req: Request)
src/do_state.rs:50
↓ 1 callersFunctionsampled_js_utf16_positions
(text: &str, indices: &[usize])
src/proxy.rs:804
↓ 1 callersFunctionsanitize_oauth_code
(code: &str)
src/oauth.rs:643
↓ 1 callersFunctionsession_seed_from_body
(body: &Value)
src/proxy.rs:586
↓ 1 callersFunctionset_enabled
(doc: &mut DurableStateDoc, id: &str, enabled: bool)
src/state.rs:152
↓ 1 callersFunctionsha256_hex_prefix
(value: &str, len: usize)
src/proxy.rs:820
↓ 1 callersFunctionsingleton_stub
(env: &Env)
src/lib.rs:32
↓ 1 callersFunctionsystem_has_claudecode_billing_header
(system: Option<&Value>)
src/proxy.rs:835
↓ 1 callersFunctionsystem_session_seed
(body: &Value)
src/proxy.rs:590
↓ 1 callersMethodupdate_credential
( &self, id: &str, payload: CredentialUpsertInput, )
src/do_state.rs:177
Functionapplies_magic_string_cache_control
()
src/proxy.rs:1183
Functionclaude_1m_target_for_model
(model: &str)
src/proxy.rs:443
Functionclean_string
(value: String)
src/oauth.rs:526
Functioncollect_beta_values_adds_context_1m_when_enabled
()
src/proxy.rs:1426
Functioncollect_beta_values_strip_context_1m_when_disabled
()
src/proxy.rs:1436
Functiondefault_enabled
()
src/config.rs:186
Functiondefault_schema_version
()
src/config.rs:182
Functiondetects_1m_target_from_model
()
src/proxy.rs:1413
Functiondrops_top_p_when_temperature_is_present
()
src/proxy.rs:1337
Functionfetch
(req: Request, env: Env, _ctx: Context)
src/lib.rs:13
Methodfetch
(&self, req: Request)
src/do_state.rs:37
Functionfirst_text_from_claude_content
(content: &Value)
src/proxy.rs:776
Functionflatten_system_text_before_cache_control_merges_text_blocks_before_cache_points
()
src/proxy.rs:1126
Functionflatten_system_text_before_cache_control_preserves_leading_billing_header
()
src/proxy.rs:1154
Functiongenerate_credential_id
()
src/state.rs:44
Functionignores_invalid_existing_cache_controls_when_counting_slots
()
src/proxy.rs:1235
Functioninjects_billing_header_when_missing
()
src/proxy.rs:1088
Functioninjects_metadata_user_id_when_missing
()
src/proxy.rs:1276
Functioninsert_oauth_state_replaces_existing_state_for_same_channel
()
src/state.rs:326
Methodjson_view
(&self)
src/config.rs:226
Functionkeeps_top_k_for_tolerant_model
()
src/proxy.rs:1398
Functionkeeps_top_p_when_temperature_is_absent
()
src/proxy.rs:1352
Methodnew
(state: State, env: Env)
src/do_state.rs:33
Functionparse_unix_ms_supports_seconds_timestamps
()
src/state.rs:360
Functionpreserves_existing_billing_header
()
src/proxy.rs:1104
Functionpreserves_existing_metadata_user_id
()
src/proxy.rs:1300
Functionsession_id_falls_back_to_first_message_text
()
src/proxy.rs:1319
Functionsha256_hex
(value: &str)
src/proxy.rs:626
Functionskips_magic_string_cache_control_for_empty_text_blocks
()
src/proxy.rs:1212
Functionstable_session_uuid
(seed: &str)
src/proxy.rs:630
Functionstrips_all_sampling_for_non_tolerant_model
()
src/proxy.rs:1365
Functionstrips_all_sampling_when_model_missing
()
src/proxy.rs:1382
Functiontake_oauth_state_without_requested_state_uses_latest_single_state
()
src/state.rs:342
Functionurl_encode
(value: &str)
src/oauth.rs:639
← previous101–165 of 165, ranked by callers