Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/benoitc/gunicorn
/ functions
Functions
5,599 in github.com/benoitc/gunicorn
⨍
Functions
5,599
◇
Types & classes
1,147
↳
Endpoints
142
↓ 2 callers
Method
exec
Execute a command in the container.
tests/docker/per_app_allocation/test_per_app_e2e.py:117
↓ 2 callers
Method
fileno
Return the readable file descriptor for selector registration.
gunicorn/workers/gthread.py:208
↓ 2 callers
Function
format_response
Format response data based on command. Args: command: Original command string data: Response data dictionary Returns:
gunicorn/ctl/cli.py:234
↓ 2 callers
Method
forwarded_allow_networks
Return cached network objects for forwarded_allow_ips (internal use).
gunicorn/config.py:205
↓ 2 callers
Function
generate
()
tests/docker/asgi_compliance/apps/framework_apps.py:136
↓ 2 callers
Function
generate
()
tests/docker/asgi_framework_compat/frameworks/litestar_app/app.py:124
↓ 2 callers
Function
generate
()
tests/docker/asgi_framework_compat/frameworks/starlette_app/app.py:156
↓ 2 callers
Function
generate
()
tests/docker/asgi_framework_compat/frameworks/fastapi_app/app.py:156
↓ 2 callers
Function
generate
()
tests/docker/asgi_framework_compat/frameworks/django_app/views.py:83
↓ 2 callers
Function
generate
()
tests/docker/asgi_framework_compat/frameworks/quart_app/app.py:113
↓ 2 callers
Function
get_default_config_file
()
gunicorn/config.py:655
↓ 2 callers
Method
get_dirs
(self)
gunicorn/reloader.py:116
↓ 2 callers
Method
get_logs
Get container logs.
tests/docker/per_app_allocation/test_per_app_e2e.py:128
↓ 2 callers
Method
get_thread_pool
Override this method to customize how the thread pool is created
gunicorn/workers/gthread.py:282
↓ 2 callers
Method
getsize
(self, size)
gunicorn/http/body.py:263
↓ 2 callers
Method
handle_dirty_arbiter_exit
\ Report the dirty arbiter exit status and forget the process. Called from both reaping paths: the targeted waitpid below, and
gunicorn/arbiter.py:951
↓ 2 callers
Method
handle_error
(self, req, client, addr, exc)
tests/test_http2_h2c.py:385
↓ 2 callers
Method
handle_h2c_upgrade
Switch this connection to HTTP/2 and serve the upgraded request. The client may already have sent HTTP/2 frames behind the upgrade re
gunicorn/workers/gthread.py:593
↓ 2 callers
Method
handle_http2
Handle an HTTP/2 connection. Runs in a worker thread. HTTP/2 connections are persistent and multiplex multiple streams. We handle all
gunicorn/workers/gthread.py:642
↓ 2 callers
Method
handle_http2
Handle an HTTP/2 connection. Processes multiplexed HTTP/2 streams until the connection closes. ``preface`` carries connection prefac
gunicorn/workers/base_async.py:159
↓ 2 callers
Function
has_logging_config
(config_file)
gunicorn/app/pasterapp.py:26
↓ 2 callers
Method
heartbeat
(self)
gunicorn/workers/gtornado.py:53
↓ 2 callers
Method
help
Return list of available commands. Returns: Dictionary with commands and descriptions
gunicorn/ctl/handlers.py:561
↓ 2 callers
Method
index
(self)
examples/frameworks/cherryapp.py:10
↓ 2 callers
Method
init
Initialize the application. Called once when the dirty worker starts, after the app instance is created. Use this for expens
gunicorn/dirty/app.py:98
↓ 2 callers
Method
init
Called once when dirty worker starts.
examples/dirty_example/dirty_app.py:37
↓ 2 callers
Method
init_signals
Set up signal handlers.
gunicorn/dirty/arbiter.py:269
↓ 2 callers
Method
init_signals
Set up signal handlers.
gunicorn/dirty/worker.py:178
↓ 2 callers
Method
is_already_handled
(self, respiter)
gunicorn/workers/base_async.py:34
↓ 2 callers
Function
is_compose_available
Check if docker compose is available.
tests/docker/uwsgi/conftest.py:35
↓ 2 callers
Function
is_docker_available
Check if Docker is available.
tests/docker/uwsgi/conftest.py:22
↓ 2 callers
Method
kill_process
Send a signal to a process in the container.
tests/docker/per_app_allocation/test_per_app_e2e.py:169
↓ 2 callers
Function
listen
()
tests/support/http2_live_app.py:75
↓ 2 callers
Method
load_config_from_file
(self, filename)
gunicorn/app/base.py:152
↓ 2 callers
Method
load_default_config
(self)
gunicorn/app/base.py:42
↓ 2 callers
Method
load_wsgi
(self)
gunicorn/workers/base.py:148
↓ 2 callers
Method
log
Log a given statistic if metric, value and type are present
gunicorn/instrument/statsd.py:71
↓ 2 callers
Function
loggers
get list of all loggers
gunicorn/glogging.py:88
↓ 2 callers
Function
make_uwsgi_packet_with_body
Create uWSGI packet with body for testing.
tests/test_uwsgi.py:44
↓ 2 callers
Method
murder_pending
Close expired pending connections (waiting for initial data).
gunicorn/workers/gthread.py:370
↓ 2 callers
Method
murder_workers
Kill workers that have timed out.
gunicorn/dirty/arbiter.py:1054
↓ 2 callers
Method
notify
(self)
gunicorn/workers/workertmp.py:42
↓ 2 callers
Method
nworkers_changed
(server, new_value, old_value)
gunicorn/config.py:2136
↓ 2 callers
Method
on_dirty_starting
(arbiter)
gunicorn/config.py:3235
↓ 2 callers
Method
parse_chunk_size
(self, unreader, data=None)
gunicorn/http/body.py:124
↓ 2 callers
Method
parse_headers
(self, data, from_trailer=False)
gunicorn/http/message.py:334
↓ 2 callers
Method
parse_trailers
(self, unreader, data)
gunicorn/http/body.py:68
↓ 2 callers
Method
pause_reading
(self)
gunicorn/asgi/protocol.py:251
↓ 2 callers
Function
peer_trusted_for_h2c
Whether this peer may negotiate cleartext HTTP/2. Reuses the ``forwarded_allow_ips`` trust list: h2c is only ever expected from the TLS-termi
gunicorn/http2/negotiation.py:41
↓ 2 callers
Method
pump
Read once from the socket while a request body is being consumed. Frames for the stream being read land in its buffer; any request th
gunicorn/http2/connection.py:245
↓ 2 callers
Method
read
(self, size)
gunicorn/http/body.py:181
↓ 2 callers
Method
read
(self, size)
gunicorn/http/body.py:205
↓ 2 callers
Method
read_into
Append one socket read to a bytearray, without copying it.
gunicorn/http/body.py:168
↓ 2 callers
Method
readexactly
(self, n)
benchmarks/dirty_streaming.py:94
↓ 2 callers
Method
reap_dirty_arbiter
\ Reap the dirty arbiter process if it has exited.
gunicorn/arbiter.py:973
↓ 2 callers
Method
reload
Reload workers (SIGHUP handling).
gunicorn/dirty/arbiter.py:1098
↓ 2 callers
Method
reload
Trigger graceful reload (equivalent to SIGHUP). Returns: Dictionary with status
gunicorn/ctl/handlers.py:419
↓ 2 callers
Method
reopen
Reopen log files (equivalent to SIGUSR1). Returns: Dictionary with status
gunicorn/ctl/handlers.py:430
↓ 2 callers
Method
resize
Resize an image. Equivalent to Celery: @app.task def resize_image(image_path, width, height):
examples/celery_alternative/tasks.py:193
↓ 2 callers
Method
resume_reading
(self)
gunicorn/asgi/protocol.py:256
↓ 2 callers
Function
run
\ The ``gunicorn`` command line runner for launching Gunicorn with generic WSGI applications.
gunicorn/app/wsgiapp.py:60
↓ 2 callers
Method
run
\ This is the mainloop of a worker process. You should override this method in a subclass to provide the intended behaviour fo
gunicorn/workers/base.py:80
↓ 2 callers
Function
secure_scheme_names
The secure_scheme_headers names as lower-case bytes.
gunicorn/asgi/protocol.py:184
↓ 2 callers
Method
send
(message)
gunicorn/asgi/protocol.py:1696
↓ 2 callers
Function
send_error
Send an error response.
tests/docker/asgi_compliance/apps/http_app.py:586
↓ 2 callers
Function
serialize_scope
Convert ASGI scope to JSON-serializable dict.
tests/docker/asgi_framework_compat/frameworks/litestar_app/app.py:40
↓ 2 callers
Function
serialize_scope
Convert ASGI scope to JSON-serializable dict.
tests/docker/asgi_framework_compat/frameworks/starlette_app/app.py:68
↓ 2 callers
Function
serialize_scope
Convert ASGI scope to JSON-serializable dict.
tests/docker/asgi_framework_compat/frameworks/fastapi_app/app.py:63
↓ 2 callers
Function
serialize_scope
Convert ASGI scope to JSON-serializable dict.
tests/docker/asgi_framework_compat/frameworks/blacksheep_app/app.py:42
↓ 2 callers
Function
serialize_scope
Convert ASGI scope to JSON-serializable dict.
tests/docker/asgi_framework_compat/frameworks/quart_app/app.py:40
↓ 2 callers
Function
server_connection_class
Return the H2Connection subclass gunicorn uses on the server side. h2 answers a peer GOAWAY by closing its own connection state, which would
gunicorn/http2/h2conn.py:13
↓ 2 callers
Method
set_body_reader
(self)
gunicorn/http/message.py:409
↓ 2 callers
Method
set_eof
(self)
tests/test_http2_async_connection.py:65
↓ 2 callers
Method
set_write_buffer_limits
(self, high=None, low=None)
tests/test_http2_h2c.py:493
↓ 2 callers
Method
setup
(self, app)
gunicorn/arbiter.py:109
↓ 2 callers
Method
setup
(self)
tests/docker/dirty_ttin_ttou/app.py:30
↓ 2 callers
Method
should_close
Check if connection should be closed after this request.
gunicorn/asgi/parser.py:1135
↓ 2 callers
Method
should_close
Check if connection should close after this request. HTTP/2 connections are persistent by design, but we may still need to close if e
gunicorn/http2/request.py:314
↓ 2 callers
Method
show_config
Return current effective configuration. Returns: Dictionary of configuration values
gunicorn/ctl/handlers.py:129
↓ 2 callers
Method
show_dirty
Return dirty workers and apps information. Returns: Dictionary with: - enabled: Whether dirty arbiter is run
gunicorn/ctl/handlers.py:69
↓ 2 callers
Method
show_stats
Return server statistics. Returns: Dictionary with: - uptime: Seconds since arbiter started - pi
gunicorn/ctl/handlers.py:164
↓ 2 callers
Method
signal_master
(self, service, sig)
tests/docker/stress/conftest.py:153
↓ 2 callers
Method
stop
(self)
tests/test_asgi_keepalive_pipeline.py:68
↓ 2 callers
Method
stop
(self)
tests/test_asgi_uwsgi_protocol.py:84
↓ 2 callers
Method
stream_lines
Stream response lines from URL.
tests/docker/asgi_compliance/conftest.py:344
↓ 2 callers
Function
sync_gen
()
benchmarks/dirty_streaming.py:214
↓ 2 callers
Method
szread
(self, func, sizes)
tests/treq.py:160
↓ 2 callers
Method
take_buffered
Return read-ahead already held, without touching the source. read() blocks on the source when the buffer is empty, which is wrong for
gunicorn/http/unreader.py:24
↓ 2 callers
Method
timer
(self, name, value)
gunicorn/instrument/statsd.py:125
↓ 2 callers
Method
tracebacks
(self)
tests/test_asgi_keepalive_pipeline.py:65
↓ 2 callers
Function
validate_pos_int
(val)
gunicorn/config.py:421
↓ 2 callers
Method
wait_closed
(self)
tests/test_dirty_arbiter.py:60
↓ 2 callers
Method
wait_closed
(self)
tests/dirty/test_worker_streaming.py:57
↓ 2 callers
Method
watchdog
(self)
gunicorn/workers/gtornado.py:45
↓ 2 callers
Method
worker_abort
(worker)
gunicorn/config.py:2029
↓ 2 callers
Method
worker_exit
(server, worker)
gunicorn/config.py:2119
↓ 2 callers
Method
write
(self, data)
tests/test_asgi_response_wire.py:283
↓ 2 callers
Method
write
(self, data)
tests/test_dirty_arbiter.py:34
↓ 2 callers
Method
write
(self, data)
benchmarks/asgi/profile_requests.py:72
↓ 1 callers
Method
__init__
(self, extra_files=None, interval=1, callback=None)
gunicorn/reloader.py:30
← previous
next →
801–900 of 5,599, ranked by callers