Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/emmett-framework/granian
/ functions
Functions
638 in github.com/emmett-framework/granian
⨍
Functions
638
◇
Types & classes
135
↳
Endpoints
34
↓ 2 callers
Function
empty_body
()
src/http.rs:56
↓ 2 callers
Method
get_client_host
(self, x_forwarded_for: str)
granian/utils/proxies.py:42
↓ 2 callers
Function
header_contains_value
( headers: &hyper::HeaderMap, header: impl hyper::header::AsHeaderName, value: impl AsRef<[u8]>, )
src/utils.rs:3
↓ 2 callers
Method
incr_spawn
(&self, val: usize)
src/metrics.rs:162
↓ 2 callers
Function
init_runtime_st
( blocking_threads: usize, py_threads: usize, py_threads_idle_timeout: u64, py_loop: Arc<Py<Py
src/runtime.rs:210
↓ 2 callers
Function
io_builder
(wait)
benchmarks/app/asgi.py:66
↓ 2 callers
Function
io_builder
(wait)
benchmarks/app/wsgi.py:38
↓ 2 callers
Function
io_builder
(wait)
benchmarks/app/rsgi.py:57
↓ 2 callers
Method
keys
(&self)
src/rsgi/types.rs:34
↓ 2 callers
Method
kill
(self)
granian/server/embed.py:85
↓ 2 callers
Function
load_env
(files)
granian/_internal.py:74
↓ 2 callers
Function
log_application_callable_exception
(py: Python, err: &pyo3::PyErr)
src/utils.rs:44
↓ 2 callers
Method
memory
(&self, py: Python<'p>, pids: Option<Vec<u32>>)
src/sys.rs:30
↓ 2 callers
Function
patch_pypath
(wd: Path | None = None)
granian/_internal.py:12
↓ 2 callers
Method
py_event_loop
(&self, py: Python)
src/runtime.rs:175
↓ 2 callers
Function
response_500
()
src/http.rs:42
↓ 2 callers
Method
response_empty
(self, status, headers)
granian/rsgi.py:58
↓ 2 callers
Method
response_file
(self, status, headers, file)
granian/rsgi.py:70
↓ 2 callers
Function
server
(server_port, request)
tests/conftest.py:121
↓ 2 callers
Function
set_main_signals
(interrupt_handler, reload_handler=None)
granian/_signals.py:15
↓ 2 callers
Method
shutdown
(self, exit_code=0)
granian/server/common.py:492
↓ 2 callers
Method
shutdown
(self, exit_code=0)
granian/server/embed.py:406
↓ 2 callers
Method
spawn_thread
(&self, current_count: usize)
src/blocking.rs:154
↓ 2 callers
Method
startup
(self, spawn_target, target_loader)
granian/server/common.py:471
↓ 2 callers
Method
startup
(self, spawn_target, target_loader)
granian/server/embed.py:384
↓ 2 callers
Method
terminate
(self)
granian/server/common.py:72
↓ 2 callers
Method
terminate
(self)
granian/server/embed.py:80
↓ 2 callers
Function
ws_message_into_py
(py: Python, message: Message)
src/asgi/conversion.rs:33
↓ 1 callers
Method
__init__
(self, loop, cb, aio_task, aio_tenter, aio_texit)
granian/_futures.py:53
↓ 1 callers
Method
__init__
(self, min: int | None = None, max: int | None = None)
granian/cli.py:31
↓ 1 callers
Method
__init__
( self, target: Any, address: str = '127.0.0.1', port: int = 8000, uds
granian/server/embed.py:95
↓ 1 callers
Function
_build_access_logger
(fmt)
granian/asgi.py:139
↓ 1 callers
Function
_build_access_logger
(fmt)
granian/wsgi.py:80
↓ 1 callers
Function
_build_access_logger
(fmt)
granian/rsgi.py:118
↓ 1 callers
Function
_cbsched_aioschedule
(loop, ctx, cb)
granian/_futures.py:90
↓ 1 callers
Function
_cbsched_schedule
(loop, ctx, run, cb)
granian/_futures.py:83
↓ 1 callers
Method
_check_gil
(self)
granian/server/mt.py:308
↓ 1 callers
Function
_client_recv
(ws, to_recv)
benchmarks/ws/benchmark.py:28
↓ 1 callers
Function
_client_redy
(target)
benchmarks/ws/benchmark.py:17
↓ 1 callers
Function
_client_send
(ws, messages)
benchmarks/ws/benchmark.py:37
↓ 1 callers
Function
_granian_version
()
benchmarks/benchmarks.py:402
↓ 1 callers
Method
_handle_rss_signal
(self, spawn_target, target_loader)
granian/server/common.py:521
↓ 1 callers
Function
_http_logger
(scope, proto)
granian/asgi.py:115
↓ 1 callers
Function
_http_logger
(scope, proto)
granian/rsgi.py:93
↓ 1 callers
Method
_id
(self)
granian/server/common.py:48
↓ 1 callers
Method
_id
(self)
granian/server/embed.py:55
↓ 1 callers
Method
_id
(self)
granian/server/mp.py:100
↓ 1 callers
Method
_init_shared_socket
(self)
granian/server/common.py:313
↓ 1 callers
Method
_init_shared_socket
(self)
granian/server/mp.py:328
↓ 1 callers
Method
_init_static_mounts
( self, routes: Sequence[str], paths: Sequence[Path], dir_to_file: str | None,
granian/server/common.py:236
↓ 1 callers
Function
_pretty_print_default
(value: bool | None)
granian/cli.py:94
↓ 1 callers
Method
_respawn_workers
(self, workers, spawn_target, target_loader, delay: float = 0)
granian/server/embed.py:350
↓ 1 callers
Function
_runner
(proto, scope)
granian/wsgi.py:49
↓ 1 callers
Method
_serve
(self, spawn_target, target_loader)
granian/server/embed.py:413
↓ 1 callers
Method
_serve_loop
(self, spawn_target, target_loader)
granian/server/common.py:524
↓ 1 callers
Method
_spawn
(self, target, args)
granian/server/common.py:45
↓ 1 callers
Method
_spawn_worker
(self, idx, target, callback_loader)
granian/server/embed.py:170
↓ 1 callers
Method
_start_ipc
(self)
granian/server/common.py:455
↓ 1 callers
Method
_start_metrics
(self)
granian/server/common.py:461
↓ 1 callers
Method
_stop_ipc
(self)
granian/server/common.py:458
↓ 1 callers
Method
_stop_metrics
(self)
granian/server/common.py:468
↓ 1 callers
Method
_stop_workers
(self)
granian/server/embed.py:371
↓ 1 callers
Method
_unlink_pidfile
(self)
granian/server/common.py:438
↓ 1 callers
Method
_watch
(self)
granian/server/common.py:60
↓ 1 callers
Method
_watch
(self)
granian/server/embed.py:68
↓ 1 callers
Method
_watcher
(self)
granian/server/embed.py:58
↓ 1 callers
Method
_write_pid
(self)
granian/server/common.py:406
↓ 1 callers
Method
_write_pidfile
(self)
granian/server/common.py:410
↓ 1 callers
Function
_ws_logger
(scope, proto)
granian/asgi.py:123
↓ 1 callers
Function
_ws_logger
(scope, proto)
granian/rsgi.py:101
↓ 1 callers
Function
adapt_body
(py: Python, message: &Bound<PyDict>)
src/asgi/io.rs:680
↓ 1 callers
Function
adapt_file
(py: Python, message: &Bound<PyDict>)
src/asgi/io.rs:694
↓ 1 callers
Function
adapt_headers
(py: Python, message: &Bound<PyDict>)
src/asgi/io.rs:661
↓ 1 callers
Function
adapt_status_code
(py: Python, message: &Bound<PyDict>)
src/asgi/io.rs:653
↓ 1 callers
Method
as_unix_listener
(&self)
src/net.rs:196
↓ 1 callers
Function
benchmark
(run)
benchmarks/ws/benchmark.py:65
↓ 1 callers
Function
benchmark_ws
(concurrencies=None)
benchmarks/benchmarks.py:193
↓ 1 callers
Function
blocking_worker
(queue: channel::Receiver<BlockingTask>)
src/blocking.rs:265
↓ 1 callers
Function
blocking_worker_idle
(queue: channel::Receiver<BlockingTask>, idle: Arc<atomic::AtomicUsize>)
src/blocking.rs:273
↓ 1 callers
Function
blocking_worker_idle_with_metrics
( queue: channel::Receiver<BlockingTask>, idle: Arc<atomic::AtomicUsize>, metrics: Arc<metrics::Wo
src/blocking.rs:354
↓ 1 callers
Function
blocking_worker_timeout
( queue: channel::Receiver<BlockingTask>, timeout: time::Duration, idle: Arc<atomic::AtomicUsize>,
src/blocking.rs:286
↓ 1 callers
Function
blocking_worker_timeout_with_metrics
( queue: channel::Receiver<BlockingTask>, timeout: time::Duration, idle: Arc<atomic::AtomicUsize>,
src/blocking.rs:416
↓ 1 callers
Function
blocking_worker_with_metrics
(queue: channel::Receiver<BlockingTask>, metrics: Arc<metrics::WorkerMetrics>)
src/blocking.rs:304
↓ 1 callers
Function
broadcast
(message)
benchmarks/ws/app/asgi.py:4
↓ 1 callers
Function
broadcast
(message)
benchmarks/ws/app/rsgi.py:7
↓ 1 callers
Function
build_env_loader
()
granian/_internal.py:79
↓ 1 callers
Function
build_response
(status: u16, pyheaders: hyper::HeaderMap, body: HTTPResponseBody)
src/wsgi/http.rs:14
↓ 1 callers
Function
build_results
(data)
benchmarks/ws/benchmark.py:78
↓ 1 callers
Function
build_scope_http
( py: Python, req: request::Parts, server: SockAddr, client: SockAddr, scheme: HTTPProto,
src/asgi/utils.rs:91
↓ 1 callers
Function
build_scope_ws
( py: Python, req: request::Parts, server: SockAddr, client: SockAddr, scheme: HTTPProto,
src/asgi/utils.rs:104
↓ 1 callers
Method
build_ssl_context
( self, cert: Path | None, key: Path | None, password: str | None, pro
granian/server/common.py:261
↓ 1 callers
Function
build_wsgi
( py: Python, server_addr: SockAddr, client_addr: SockAddr, scheme: HTTPProto, mut req: re
src/wsgi/callbacks.rs:32
↓ 1 callers
Function
call_http
( rt: RuntimeRef, cb: ArcCBScheduler, server_addr: SockAddr, client_addr: SockAddr, scheme
src/wsgi/callbacks.rs:117
↓ 1 callers
Method
cancel
(self)
granian/_futures.py:57
↓ 1 callers
Function
cli
( app: str, host: str, port: int, uds: pathlib.Path | None, uds_permissions: int | None,
granian/cli.py:435
↓ 1 callers
Function
client
()
tests/test_embed.py:28
↓ 1 callers
Function
client
(idx, messages, ready_signal)
benchmarks/ws/benchmark.py:46
↓ 1 callers
Method
close
(&mut self)
src/asgi/io.rs:331
↓ 1 callers
Method
consumed
(&self)
src/rsgi/io.rs:330
↓ 1 callers
Function
default_runtime
(blocking_threads: usize)
src/runtime.rs:180
← previous
next →
101–200 of 638, ranked by callers