Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/adrgs/requestrepo
/ functions
Functions
362 in github.com/adrgs/requestrepo
⨍
Functions
362
◇
Types & classes
75
↓ 79 callers
Method
clone
(&self)
src/src/cache/mod.rs:484
↓ 37 callers
Method
get
Get a value by key
src/src/cache/mod.rs:180
↓ 37 callers
Method
set
Set a key-value pair (for files, DNS records) Enforces per-subdomain size limits for session data
src/src/cache/mod.rs:119
↓ 28 callers
Method
get
Get a file by path, returns index.html for SPA routes
src/src/http/static_files.rs:190
↓ 25 callers
Method
rpush
Push to a request list (right push) This is used for request logs - LRU evicted under memory pressure
src/src/cache/mod.rs:231
↓ 17 callers
Method
lrange
Get range from list
src/src/cache/mod.rs:285
↓ 16 callers
Method
clone
(&self)
src/src/certs/tls.rs:125
↓ 16 callers
Method
delete
Delete a key
src/src/cache/mod.rs:194
↓ 13 callers
Method
keys
(&self, pattern: &str)
src/src/cache/mod.rs:357
↓ 11 callers
Method
load
Load all static files from the public directory into memory
src/src/http/static_files.rs:32
↓ 9 callers
Function
verify_token_or_error
Verify token and return subdomain, or return error response
src/src/http/routes_v2.rs:103
↓ 8 callers
Function
verify_jwt
(token: &str)
src/src/utils/mod.rs:30
↓ 7 callers
Function
setup_crypto_provider
()
src/src/certs/tls.rs:228
↓ 6 callers
Function
get_subdomain_from_hostname
(host: &str)
src/src/utils/mod.rs:126
↓ 6 callers
Method
reload
(&self, chain_pem: &[u8], key_pem: &[u8])
src/src/certs/tls.rs:85
↓ 6 callers
Method
validate
Validate a certificate and determine if renewal is needed Returns ValidationResult with details about the cert status
src/src/certs/validation.rs:31
↓ 5 callers
Function
applyTheme
(resolvedTheme: "light" | "dark")
frontend/src/stores/themeStore.ts:23
↓ 5 callers
Function
cn
(...inputs: ClassValue[])
frontend/src/lib/utils.ts:4
↓ 5 callers
Function
copyToClipboard
(text: string)
frontend/src/lib/utils.ts:27
↓ 5 callers
Function
get_current_timestamp
()
src/src/utils/mod.rs:251
↓ 5 callers
Function
isAdminRequiredError
(error: unknown)
frontend/src/api/client.ts:33
↓ 5 callers
Function
isSmtpRequest
(request: Request)
frontend/src/types/index.ts:71
↓ 5 callers
Method
layer
(&self, inner: S)
src/src/http/mod.rs:271
↓ 5 callers
Method
reload_domain
Reload the domain certificate and rebuild the TLS config
src/src/certs/tls.rs:90
↓ 5 callers
Method
run
(&self)
src/src/dns/mod.rs:81
↓ 5 callers
Method
stats
Get cache statistics
src/src/cache/mod.rs:99
↓ 5 callers
Function
useTheme
()
frontend/src/hooks/useTheme.ts:4
↓ 4 callers
Function
extract_subdomain_from_key
Extract subdomain from cache key for size tracking
src/src/cache/mod.rs:500
↓ 4 callers
Function
formatDate
(timestamp: number)
frontend/src/lib/utils.ts:8
↓ 4 callers
Function
generate_jwt
(subdomain: &str)
src/src/utils/mod.rs:158
↓ 4 callers
Function
generate_request_id
()
src/src/utils/mod.rs:247
↓ 4 callers
Function
getDnsDomain
()
frontend/src/lib/config.ts:54
↓ 4 callers
Function
getFlagClass
(countryCode: string | null | undefined)
frontend/src/lib/utils.ts:89
↓ 4 callers
Function
get_subdomain_from_path
(path: &str)
src/src/utils/mod.rs:63
↓ 4 callers
Function
get_wildcard_key
Generate the wildcard key for a DNS query e.g., "www.abc123.requestrepo.com." -> "*.abc123.requestrepo.com."
src/src/dns/mod.rs:301
↓ 4 callers
Function
isHttpRequest
(request: Request)
frontend/src/types/index.ts:63
↓ 4 callers
Function
is_admin_token_required
Check if admin token is required for API access
src/src/utils/auth.rs:25
↓ 4 callers
Method
load_certificate
Load existing certificate and private key if they exist Returns None if either file is missing
src/src/certs/storage.rs:54
↓ 4 callers
Method
load_ip_certificate
Load existing IP certificate and private key if they exist
src/src/certs/storage.rs:65
↓ 4 callers
Function
log_validation_result
Log a certificate validation result with consistent formatting
src/src/certs/mod.rs:336
↓ 4 callers
Function
lookup_country
Look up the country code for an IP address Returns None if IP is invalid or database not loaded
src/src/ip2country/mod.rs:96
↓ 4 callers
Method
lset
Set value at index in list
src/src/cache/mod.rs:328
↓ 4 callers
Method
reload_ip
Reload the IP certificate and rebuild the TLS config
src/src/certs/tls.rs:100
↓ 4 callers
Function
scrubSensitiveParams
(url: string)
frontend/src/main.tsx:34
↓ 4 callers
Method
set_txt
Add a TXT record for ACME challenge (supports multiple values per domain) The domain should be the full _acme-challenge.{domain} hostname
src/src/certs/challenge.rs:69
↓ 4 callers
Function
setup_crypto_provider
()
src/src/tests/certs_tests.rs:7
↓ 3 callers
Method
account_path
Path to the ACME account credentials (JSON format)
src/src/certs/storage.rs:48
↓ 3 callers
Method
atomic_write
Atomic write: write to temp file then rename
src/src/certs/storage.rs:162
↓ 3 callers
Function
build_certified_key
Build a CertifiedKey from PEM-encoded certificate chain and private key
src/src/certs/tls.rs:141
↓ 3 callers
Function
decodeBase64Safe
(base64: string)
frontend/src/lib/base64.ts:45
↓ 3 callers
Function
getBaseDomain
()
frontend/src/lib/config.ts:59
↓ 3 callers
Function
getResolvedTheme
(theme: Theme)
frontend/src/stores/themeStore.ts:14
↓ 3 callers
Function
getRuntimeDomain
* Get the base domain from runtime config or fallback to detection * Priority: * 1. Backend-injected window.__CONFIG__.DOMAIN (most reliable) * 2.
frontend/src/lib/config.ts:18
↓ 3 callers
Function
init
()
src/src/ip2country/mod.rs:26
↓ 3 callers
Function
isNetworkError
(error: unknown)
frontend/src/api/client.ts:20
↓ 3 callers
Function
isValidFileName
(name: string)
frontend/src/lib/fileTree.ts:105
↓ 3 callers
Function
parse_certificates
Parse PEM-encoded certificates
src/src/certs/tls.rs:177
↓ 3 callers
Function
parse_private_key
Parse a PEM-encoded private key (supports RSA, PKCS8, EC)
src/src/certs/tls.rs:187
↓ 3 callers
Method
set_token
Store a challenge token and its key authorization
src/src/certs/challenge.rs:28
↓ 3 callers
Method
update_subdomain_size
(&self, subdomain: &str, delta: isize)
src/src/cache/mod.rs:394
↓ 3 callers
Function
validate_dns_domain
Validate a DNS domain name for security and RFC compliance Security: Blocks empty domains and "@" (root subdomain) to prevent users from setting DNS
src/src/http/routes_v2.rs:139
↓ 2 callers
Method
check_and_renew_domain
Check if domain cert renewal is needed and perform it
src/src/certs/mod.rs:192
↓ 2 callers
Function
check_rate_limit_generic
Generic cache-based rate limiter
src/src/http/routes_v2.rs:299
↓ 2 callers
Method
clear_token
Remove a challenge token after validation
src/src/certs/challenge.rs:35
↓ 2 callers
Method
clear_txt
Clear all TXT records for the challenge domain
src/src/certs/challenge.rs:90
↓ 2 callers
Method
create_acme_client
Create a new ACME client using the stored configuration
src/src/certs/mod.rs:243
↓ 2 callers
Function
create_router
Create the shared router with all routes
src/src/http/mod.rs:100
↓ 2 callers
Function
decodeBase64
(base64: string)
frontend/src/lib/base64.ts:20
↓ 2 callers
Function
encodeBase64
(str: string)
frontend/src/lib/base64.ts:5
↓ 2 callers
Function
extract_subdomain_from_email
Extract subdomain from an email address like "user@subdomain.domain.com"
src/src/smtp/mod.rs:136
↓ 2 callers
Function
formatRelativeTime
(timestamp: number)
frontend/src/lib/utils.ts:12
↓ 2 callers
Method
fullchain_path
Path to the full certificate chain (PEM format)
src/src/certs/storage.rs:28
↓ 2 callers
Method
generate_csr
Generate a private key and CSR with the given Subject Alternative Names
src/src/certs/acme.rs:256
↓ 2 callers
Function
getFileName
(path: string)
frontend/src/lib/fileTree.ts:88
↓ 2 callers
Function
getFilesInFolder
( files: FileTree, folderPath: string, )
frontend/src/lib/fileTree.ts:125
↓ 2 callers
Function
get_random_subdomain
()
src/src/utils/mod.rs:51
↓ 2 callers
Method
ip_fullchain_path
Path to the IP certificate chain (PEM format)
src/src/certs/storage.rs:38
↓ 2 callers
Method
ip_privkey_path
Path to the IP private key (PEM format)
src/src/certs/storage.rs:43
↓ 2 callers
Function
ip_to_u32
(ip: &str)
src/src/ip2country/mod.rs:85
↓ 2 callers
Function
isDnsRequest
(request: Request)
frontend/src/types/index.ts:67
↓ 2 callers
Function
legacyCopy
(text: string)
frontend/src/lib/utils.ts:38
↓ 2 callers
Method
load_cert_pair
Load a certificate chain and private key from the given paths
src/src/certs/storage.rs:80
↓ 2 callers
Method
maybe_evict_requests
Evict oldest request lists if memory usage is above threshold
src/src/cache/mod.rs:406
↓ 2 callers
Method
poll_ready
(&mut self, cx: &mut Context<'_>)
src/src/http/mod.rs:293
↓ 2 callers
Method
privkey_path
Path to the private key (PEM format)
src/src/certs/storage.rs:33
↓ 2 callers
Method
rebuild_config
Rebuild the ServerConfig with the DualCertResolver
src/src/certs/tls.rs:109
↓ 2 callers
Method
release_port
(&self, subdomain: &str)
src/src/tcp/mod.rs:108
↓ 2 callers
Method
resolve
(&self, client_hello: ClientHello<'_>)
src/src/certs/tls.rs:31
↓ 2 callers
Method
save_cert_pair
Save a certificate chain and private key atomically with restrictive permissions
src/src/certs/storage.rs:100
↓ 2 callers
Method
save_certificate
Save certificate and private key atomically Uses temp file + rename to prevent corruption on crash
src/src/certs/storage.rs:60
↓ 2 callers
Method
save_ip_certificate
Save IP certificate and private key atomically
src/src/certs/storage.rs:70
↓ 2 callers
Function
scrollToBottom
()
frontend/src/components/layout/Sidebar.tsx:96
↓ 2 callers
Function
seconds_until_expiry
Calculate seconds until certificate expiry
src/src/certs/validation.rs:232
↓ 2 callers
Function
verify_admin_token
Verify if the provided token is a valid admin token
src/src/utils/auth.rs:17
↓ 2 callers
Function
write_basic_file
(subdomain: &str, cache: &crate::cache::Cache)
src/src/utils/mod.rs:208
↓ 1 callers
Method
acceptor
Get a TLS acceptor for accepting new connections Returns None if no certificate is configured
src/src/certs/tls.rs:74
↓ 1 callers
Function
addJitter
(delay: number)
frontend/src/hooks/useWebSocket.ts:13
↓ 1 callers
Method
allocate_port
(&self, subdomain: &str)
src/src/tcp/mod.rs:77
↓ 1 callers
Function
broadcastClearRequests
(subdomain: string)
frontend/src/stores/requestStore.ts:81
↓ 1 callers
Function
broadcastDeleteRequest
(subdomain: string, requestId: string)
frontend/src/stores/requestStore.ts:74
next →
1–100 of 362, ranked by callers