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
↓ 2 callers
Method
create_worker
Create a worker for testing.
tests/test_gthread.py:1293
↓ 2 callers
Function
create_wsgi_config
Create a config for WSGI parsing.
benchmarks/http_parser_benchmark.py:79
↓ 2 callers
Method
debug
(self, msg, *args)
examples/dirty_example/test_worker_integration.py:30
↓ 2 callers
Function
decode_hex_escapes
Decode hex escape sequences like \\xAB in test data.
tests/treq_asgi.py:94
↓ 2 callers
Function
decode_hex_escapes
Decode hex escape sequences like \\xAB in test data.
tests/treq.py:54
↓ 2 callers
Function
default_environ
(req, sock, cfg)
gunicorn/http/wsgi.py:91
↓ 2 callers
Method
default_headers
(self)
gunicorn/http/wsgi.py:423
↓ 2 callers
Method
dirty_post_fork
(arbiter, worker)
gunicorn/config.py:3175
↓ 2 callers
Method
dirty_worker_exit
(arbiter, worker)
gunicorn/config.py:3213
↓ 2 callers
Method
dirty_worker_init
(worker)
gunicorn/config.py:3194
↓ 2 callers
Method
do_load_config
Loads the configuration
gunicorn/app/base.py:29
↓ 2 callers
Method
drain_body
Drain unread body data. Should be called before reusing connection for keepalive.
gunicorn/asgi/uwsgi.py:149
↓ 2 callers
Method
encode_chunk
Encode a chunk message for streaming responses. Args: request_id: Request identifier this chunk belongs to d
gunicorn/dirty/protocol.py:256
↓ 2 callers
Method
encode_end
Encode an end-of-stream message. Args: request_id: Request identifier this ends Returns: bytes: Com
gunicorn/dirty/protocol.py:274
↓ 2 callers
Method
encode_error
Encode an error response message. Args: request_id: Request identifier this responds to error: DirtyError in
gunicorn/dirty/protocol.py:225
↓ 2 callers
Method
encode_hybi
Encode a HyBi style WebSocket frame. Optional opcode: 0x0 - continuation 0x1 - text frame (base64 encode buf)
examples/websocket/gevent_websocket.py:162
↓ 2 callers
Method
encode_request
Encode a request message. Args: request_id: Unique request identifier (uint64) app_path: Import path of the
gunicorn/dirty/protocol.py:180
↓ 2 callers
Method
exception
(self, msg, *args, **kwargs)
gunicorn/glogging.py:292
↓ 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:202
↓ 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:182
↓ 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:154
↓ 2 callers
Function
generate
()
tests/docker/asgi_framework_compat/frameworks/fastapi_app/app.py:155
↓ 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
Method
get_data
(self, unreader, buf)
gunicorn/http/body.py:114
↓ 2 callers
Function
get_default_config_file
()
gunicorn/config.py:617
↓ 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:276
↓ 2 callers
Method
getsize
(self, size)
gunicorn/http/body.py:205
↓ 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:940
↓ 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:556
↓ 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:584
↓ 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:157
↓ 2 callers
Method
handle_http2_request
Handle a single HTTP/2 request/stream.
gunicorn/workers/gthread.py:633
↓ 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
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:266
↓ 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:32
↓ 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
Method
load_config_from_file
(self, filename)
gunicorn/app/base.py:151
↓ 2 callers
Method
load_default_config
(self)
gunicorn/app/base.py:41
↓ 2 callers
Method
load_wsgi
(self)
gunicorn/workers/base.py:147
↓ 2 callers
Method
log
Log a given statistic if metric, value and type are present
gunicorn/instrument/statsd.py:68
↓ 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:42
↓ 2 callers
Method
murder_pending
Close expired pending connections (waiting for initial data).
gunicorn/workers/gthread.py:364
↓ 2 callers
Method
murder_workers
Kill workers that have timed out.
gunicorn/dirty/arbiter.py:1051
↓ 2 callers
Method
notify
(self)
gunicorn/workers/workertmp.py:42
↓ 2 callers
Method
nworkers_changed
(server, new_value, old_value)
gunicorn/config.py:2082
↓ 2 callers
Method
on_dirty_starting
(arbiter)
gunicorn/config.py:3156
↓ 2 callers
Method
parse_headers
(self, data, from_trailer=False)
gunicorn/http/message.py:329
↓ 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
read
(self, size)
gunicorn/http/body.py:126
↓ 2 callers
Method
read
(self, size)
gunicorn/http/body.py:157
↓ 2 callers
Method
readexactly
(self, n)
benchmarks/dirty_streaming.py:94
↓ 2 callers
Method
readlines
(self, size=None)
gunicorn/http/body.py:263
↓ 2 callers
Method
reap_dirty_arbiter
\ Reap the dirty arbiter process if it has exited.
gunicorn/arbiter.py:962
↓ 2 callers
Method
reload
Reload workers (SIGHUP handling).
gunicorn/dirty/arbiter.py:1095
↓ 2 callers
Method
reload
Trigger graceful reload (equivalent to SIGHUP). Returns: Dictionary with status
gunicorn/ctl/handlers.py:419
↓ 2 callers
Method
rename
(self, path)
gunicorn/pidfile.py:48
↓ 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
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:79
↓ 2 callers
Method
send
(message)
gunicorn/asgi/protocol.py:1136
↓ 2 callers
Function
send_error
Send an error response.
tests/docker/asgi_compliance/apps/http_app.py:586
↓ 2 callers
Method
send_response_headers
Send response headers on a stream without ending it. Returns False if the stream is already gone. Split out of send_response() so a r
gunicorn/http2/connection.py:451
↓ 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:66
↓ 2 callers
Function
serialize_scope
Convert ASGI scope to JSON-serializable dict.
tests/docker/asgi_framework_compat/frameworks/fastapi_app/app.py:62
↓ 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
Method
set_body_reader
(self)
gunicorn/http/message.py:404
↓ 2 callers
Method
settimeout
(self, timeout)
tests/dirty/test_client_streaming.py:48
↓ 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 close after this request. HTTP/2 connections are persistent by design, but we may still need to close if e
gunicorn/http2/request.py:205
↓ 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
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:19
↓ 2 callers
Method
timer
(self, name, value)
gunicorn/instrument/statsd.py:122
↓ 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:1975
↓ 2 callers
Method
worker_exit
(server, worker)
gunicorn/config.py:2065
← previous
next →
601–700 of 4,774, ranked by callers