Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/benoitc/gunicorn
/ functions
Functions
4,774 in github.com/benoitc/gunicorn
⨍
Functions
4,774
◇
Types & classes
1,056
↳
Endpoints
130
↓ 1 callers
Function
handle_reject
Reject the WebSocket connection.
tests/docker/asgi_compliance/apps/websocket_app.py:245
↓ 1 callers
Method
handle_request
(self, req, conn)
gunicorn/workers/gthread.py:691
↓ 1 callers
Method
handle_request
(self)
gunicorn/workers/gtornado.py:39
↓ 1 callers
Method
handle_request
(self, listener_name, req, sock, addr)
gunicorn/workers/base_async.py:268
↓ 1 callers
Function
handle_root
Handle root path - basic response.
tests/docker/asgi_compliance/apps/http_app.py:75
↓ 1 callers
Function
handle_root
Root endpoint.
tests/docker/asgi_compliance/apps/lifespan_app.py:97
↓ 1 callers
Function
handle_root
Root endpoint with routing information.
tests/docker/asgi_compliance/apps/main_app.py:126
↓ 1 callers
Function
handle_root
Basic root endpoint.
tests/docker/uwsgi/app.py:41
↓ 1 callers
Function
handle_scope
Return ASGI scope as JSON for inspection.
tests/docker/asgi_compliance/apps/http_app.py:159
↓ 1 callers
Function
handle_scope
Return WebSocket scope as JSON.
tests/docker/asgi_compliance/apps/websocket_app.py:206
↓ 1 callers
Function
handle_slow_stream
Slow streaming response with configurable delays.
tests/docker/asgi_compliance/apps/streaming_app.py:205
↓ 1 callers
Function
handle_sse
Server-Sent Events stream.
tests/docker/asgi_compliance/apps/streaming_app.py:106
↓ 1 callers
Method
handle_stash_request
Handle a stash operation directly in the arbiter. All stash tables are stored in arbiter memory for simplicity and fast acce
gunicorn/dirty/arbiter.py:795
↓ 1 callers
Function
handle_state
Return the current state (from scope or module-level).
tests/docker/asgi_compliance/apps/lifespan_app.py:124
↓ 1 callers
Function
handle_status
Return specific HTTP status code from query parameter.
tests/docker/asgi_compliance/apps/http_app.py:213
↓ 1 callers
Method
handle_status_request
Handle a status query request. Returns information about the dirty arbiter and its workers. Args: message: Stat
gunicorn/dirty/arbiter.py:660
↓ 1 callers
Function
handle_streaming
Basic streaming response without Content-Length.
tests/docker/asgi_compliance/apps/streaming_app.py:62
↓ 1 callers
Function
handle_subprotocol
Negotiate WebSocket subprotocol.
tests/docker/asgi_compliance/apps/websocket_app.py:128
↓ 1 callers
Function
handle_trailers
Demonstrate response trailers. Trailers are headers sent after the response body. Common uses: gRPC status codes, checksums, timing info.
examples/http2_features/http2_app.py:127
↓ 1 callers
Function
handle_unknown
Handle unknown WebSocket paths - accept then close.
tests/docker/asgi_compliance/apps/websocket_app.py:460
↓ 1 callers
Method
handle_usr1
\ SIGUSR1 handling. Kill all workers by sending them a SIGUSR1
gunicorn/arbiter.py:351
↓ 1 callers
Function
handle_websocket
Handle WebSocket connections.
examples/asgi/websocket_app.py:82
↓ 1 callers
Method
handler
(reader, writer)
tests/ctl/test_protocol.py:212
↓ 1 callers
Method
histogram
(self, name, value)
gunicorn/instrument/statsd.py:125
↓ 1 callers
Method
init
(self, parser, opts, args)
gunicorn/app/base.py:45
↓ 1 callers
Method
init
(self)
examples/dirty_example/dirty_app.py:129
↓ 1 callers
Function
initCollapsibleTOC
()
docs/content/assets/javascripts/toc-collapse.js:3
↓ 1 callers
Method
init_process
Initialize the worker process after fork. This is called in the child process after fork. It sets up the environment, loads
gunicorn/dirty/worker.py:142
↓ 1 callers
Method
init_signals
(self)
gunicorn/workers/base.py:163
↓ 1 callers
Method
initiate_upgrade
Switch a connection to HTTP/2 after an Upgrade: h2c request. The async twin of HTTP2Connection.initiate_upgrade. The upgraded request
gunicorn/http2/async_connection.py:127
↓ 1 callers
Method
is_parent_alive
(self)
gunicorn/workers/gthread.py:382
↓ 1 callers
Function
large_body
Generate large request/response body.
tests/docker/asgi_framework_compat/conftest.py:205
↓ 1 callers
Method
load
(self)
tests/test_config.py:68
↓ 1 callers
Function
load_class
(uri, default="gunicorn.workers.sync.SyncWorker", section="gunicorn.workers")
gunicorn/util.py:88
↓ 1 callers
Method
load_config
This method is used to load the configuration from one or several input(s). Custom Command line, configuration file. You have
gunicorn/app/base.py:51
↓ 1 callers
Method
load_config_from_module_name_or_filename
Loads the configuration file: the file is a python file, otherwise raise an RuntimeError Exception or stop the process if the configu
gunicorn/app/base.py:122
↓ 1 callers
Function
load_entry_point
(distribution, group, name)
gunicorn/util.py:79
↓ 1 callers
Method
load_pasteapp
(self)
gunicorn/app/wsgiapp.py:49
↓ 1 callers
Method
load_wsgiapp
(self)
gunicorn/app/wsgiapp.py:46
↓ 1 callers
Method
logger_class
(self)
gunicorn/config.py:157
↓ 1 callers
Function
main
Main entry point for gunicornc CLI.
gunicorn/ctl/cli.py:392
↓ 1 callers
Function
main
()
scripts/build_settings_doc.py:252
↓ 1 callers
Function
main
()
tests/docker/asgi_framework_compat/scripts/generate_grid.py:156
↓ 1 callers
Function
main
()
examples/http2_features/test_http2.py:247
↓ 1 callers
Function
main
()
examples/dirty_example/test_integration.py:45
↓ 1 callers
Function
main
Run all tests.
examples/dirty_example/test_stash_integration.py:173
↓ 1 callers
Function
main
()
benchmarks/dirty_benchmark.py:891
↓ 1 callers
Function
main
()
benchmarks/run_benchmark.py:180
↓ 1 callers
Function
main
()
benchmarks/http_parser_benchmark.py:221
↓ 1 callers
Function
main
()
benchmarks/dirty_streaming.py:728
↓ 1 callers
Function
make_aiohttp_app
(app)
examples/frameworks/flaskapp_aiohttp_wsgi.py:22
↓ 1 callers
Function
make_app
()
examples/frameworks/tornadoapp.py:22
↓ 1 callers
Function
make_protocol
(app)
tests/test_asgi_http2_response.py:19
↓ 1 callers
Function
make_request
()
tests/test_asgi_http2_response.py:32
↓ 1 callers
Function
make_settings
(ignore=None)
gunicorn/config.py:31
↓ 1 callers
Method
manage_dirty_arbiter
\ Maintain the dirty arbiter process by respawning if needed.
gunicorn/arbiter.py:980
↓ 1 callers
Function
map_exception
Map a WSGI exception class to equivalent ASGI parser exceptions. Args: wsgi_exc: The expected WSGI exception class http_parser: P
tests/treq_asgi.py:130
↓ 1 callers
Method
maybe_promote_master
(self)
gunicorn/arbiter.py:380
↓ 1 callers
Method
memory_usage
(self, pid)
examples/when_ready.conf.py:21
↓ 1 callers
Method
notify
(self)
gunicorn/workers/ggevent.py:47
↓ 1 callers
Function
number_of_workers
()
examples/standalone_app.py:19
↓ 1 callers
Method
on_exit
(server)
gunicorn/config.py:2101
↓ 1 callers
Method
on_pending_socket_readable
Handle a pending (deferred) connection becoming readable.
gunicorn/workers/gthread.py:335
↓ 1 callers
Method
on_reload
(server)
gunicorn/config.py:1873
↓ 1 callers
Method
on_starting
(server)
gunicorn/config.py:1857
↓ 1 callers
Method
parse
Parse a uWSGI request asynchronously. Args: cfg: gunicorn config object unreader: AsyncUnreader instance
gunicorn/asgi/uwsgi.py:65
↓ 1 callers
Method
parse
Parse uWSGI packet header and vars block.
gunicorn/uwsgi/message.py:89
↓ 1 callers
Function
parse_ab_output
Parse ab output to extract metrics.
benchmarks/run_benchmark.py:131
↓ 1 callers
Method
parse_chunk_size
(self, unreader, data=None)
gunicorn/http/body.py:83
↓ 1 callers
Method
parse_chunked
(self, unreader)
gunicorn/http/body.py:62
↓ 1 callers
Method
parse_request_line
(self, line_bytes)
gunicorn/http/message.py:868
↓ 1 callers
Function
parse_results
Parse pytest JSON results into framework/category structure.
tests/docker/asgi_framework_compat/scripts/generate_grid.py:37
↓ 1 callers
Function
parse_syslog_address
(addr)
gunicorn/glogging.py:118
↓ 1 callers
Method
parse_trailers
(self, unreader, data)
gunicorn/http/body.py:40
↓ 1 callers
Function
parse_wrk_output
Parse wrk output to extract metrics.
benchmarks/run_benchmark.py:112
↓ 1 callers
Method
pause_reading
(self)
gunicorn/asgi/protocol.py:105
↓ 1 callers
Method
pause_writing
(self)
gunicorn/asgi/protocol.py:115
↓ 1 callers
Method
post_fork
(server, worker)
gunicorn/config.py:1922
↓ 1 callers
Method
post_request
(data)
tests/docker/uwsgi/test_uwsgi_integration.py:259
↓ 1 callers
Method
post_worker_init
(worker)
gunicorn/config.py:1939
↓ 1 callers
Method
pre_exec
(server)
gunicorn/config.py:1995
↓ 1 callers
Method
pre_fork
(server, worker)
gunicorn/config.py:1905
↓ 1 callers
Function
preface_match
Compare buffered bytes against the connection preface. Returns ``MATCH`` when the whole preface is present, ``PARTIAL`` when the bytes so far
gunicorn/http2/negotiation.py:29
↓ 1 callers
Function
print_result
Print benchmark result.
benchmarks/http_parser_benchmark.py:157
↓ 1 callers
Method
process_headers
(self, headers)
gunicorn/http/wsgi.py:378
↓ 1 callers
Function
proxy_environ
(req)
gunicorn/http/wsgi.py:104
↓ 1 callers
Method
proxy_protocol_access_check
Check if proxy protocol is allowed from this peer.
gunicorn/http/message.py:707
↓ 1 callers
Function
random_bytes
Generate random bytes for testing.
tests/docker/asgi_framework_compat/conftest.py:195
↓ 1 callers
Function
read_body
Read the full request body.
examples/http2_features/http2_app.py:262
↓ 1 callers
Function
read_body
Read the full request body.
examples/asgi/basic_app.py:87
↓ 1 callers
Method
read_line
Read a line from buffer, returning (line, remaining_buffer).
gunicorn/http/message.py:660
↓ 1 callers
Method
receive
()
tests/test_asgi_worker.py:502
↓ 1 callers
Function
redirect
(stream, fd_expect)
gunicorn/util.py:594
↓ 1 callers
Method
refresh_dirs
(self)
gunicorn/reloader.py:109
↓ 1 callers
Function
render_settings
()
scripts/build_settings_doc.py:219
↓ 1 callers
Method
reset_stream
Reset a stream with RST_STREAM.
gunicorn/http2/async_connection.py:597
↓ 1 callers
Method
restart_gunicorn
Restart gunicorn in the container.
tests/docker/dirty_arbiter/test_parent_death.py:269
↓ 1 callers
Method
resume_reading
(self)
gunicorn/asgi/protocol.py:110
↓ 1 callers
Method
resume_writing
(self)
gunicorn/asgi/protocol.py:120
↓ 1 callers
Method
run
Main master loop.
gunicorn/arbiter.py:242
← previous
next →
1,001–1,100 of 4,774, ranked by callers