Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/twilight-rs/http-proxy
/ functions
Functions
18 in github.com/twilight-rs/http-proxy
⨍
Functions
18
◇
Types & classes
5
↓ 10 callers
Method
get
Returns the value corresponding to the key.
src/tlru.rs:77
↓ 5 callers
Method
insert
Inserts a key-value pair into the cache. If the cache is full, the least recently used entry is replaced.
src/tlru.rs:63
↓ 5 callers
Function
parse_env
(key: &str)
src/main.rs:361
↓ 2 callers
Method
len
Returns the number of entries in the cache.
src/tlru.rs:96
↓ 1 callers
Function
parse_headers
( headers: &HeaderMap, scope: Option<&[u8]>, start: Instant, )
src/main.rs:302
↓ 1 callers
Method
poll_expired
Attempts to remove an expired entry.
src/tlru.rs:102
↓ 1 callers
Function
reaper
(notify: Arc<Notify>, tlru: Arc<Mutex<TlruInner<K, V>>>)
src/tlru.rs:118
↓ 1 callers
Method
remove_lru
Removes the least recently used entry.
src/tlru.rs:110
Method
as_response
(&self)
src/error.rs:21
Method
fmt
(&self, f: &mut Formatter<'_>)
src/error.rs:37
Method
get_or_insert
(&self, token: Option<&str>)
src/ratelimiter_map.rs:34
Function
handle_metrics
(handle: PrometheusHandle)
src/main.rs:290
Function
handle_request
( client: Client<HttpsConnector<HttpConnector>, Incoming>, ratelimiter: RateLimiter, token: String
src/main.rs:185
Function
main
()
src/main.rs:56
Method
new
(mut default_token: String, timeout: Duration, cap: NonZero<usize>)
src/ratelimiter_map.rs:13
Method
new
Creates an empty `Tlru`.
src/tlru.rs:42
Function
shutdown_signal
()
src/main.rs:168
Function
tlru
()
src/tlru.rs:135