MCPcopy Create free account

hub / github.com/benoitc/gunicorn / functions

Functions4,774 in github.com/benoitc/gunicorn

↓ 2 callersMethodcreate_worker
Create a worker for testing.
tests/test_gthread.py:1293
↓ 2 callersFunctioncreate_wsgi_config
Create a config for WSGI parsing.
benchmarks/http_parser_benchmark.py:79
↓ 2 callersMethoddebug
(self, msg, *args)
examples/dirty_example/test_worker_integration.py:30
↓ 2 callersFunctiondecode_hex_escapes
Decode hex escape sequences like \\xAB in test data.
tests/treq_asgi.py:94
↓ 2 callersFunctiondecode_hex_escapes
Decode hex escape sequences like \\xAB in test data.
tests/treq.py:54
↓ 2 callersFunctiondefault_environ
(req, sock, cfg)
gunicorn/http/wsgi.py:91
↓ 2 callersMethoddefault_headers
(self)
gunicorn/http/wsgi.py:423
↓ 2 callersMethoddirty_post_fork
(arbiter, worker)
gunicorn/config.py:3175
↓ 2 callersMethoddirty_worker_exit
(arbiter, worker)
gunicorn/config.py:3213
↓ 2 callersMethoddirty_worker_init
(worker)
gunicorn/config.py:3194
↓ 2 callersMethoddo_load_config
Loads the configuration
gunicorn/app/base.py:29
↓ 2 callersMethoddrain_body
Drain unread body data. Should be called before reusing connection for keepalive.
gunicorn/asgi/uwsgi.py:149
↓ 2 callersMethodencode_chunk
Encode a chunk message for streaming responses. Args: request_id: Request identifier this chunk belongs to d
gunicorn/dirty/protocol.py:256
↓ 2 callersMethodencode_end
Encode an end-of-stream message. Args: request_id: Request identifier this ends Returns: bytes: Com
gunicorn/dirty/protocol.py:274
↓ 2 callersMethodencode_error
Encode an error response message. Args: request_id: Request identifier this responds to error: DirtyError in
gunicorn/dirty/protocol.py:225
↓ 2 callersMethodencode_hybi
Encode a HyBi style WebSocket frame. Optional opcode: 0x0 - continuation 0x1 - text frame (base64 encode buf)
examples/websocket/gevent_websocket.py:162
↓ 2 callersMethodencode_request
Encode a request message. Args: request_id: Unique request identifier (uint64) app_path: Import path of the
gunicorn/dirty/protocol.py:180
↓ 2 callersMethodexception
(self, msg, *args, **kwargs)
gunicorn/glogging.py:292
↓ 2 callersMethodexec
Execute a command in the container.
tests/docker/per_app_allocation/test_per_app_e2e.py:117
↓ 2 callersMethodfileno
Return the readable file descriptor for selector registration.
gunicorn/workers/gthread.py:202
↓ 2 callersFunctionformat_response
Format response data based on command. Args: command: Original command string data: Response data dictionary Returns:
gunicorn/ctl/cli.py:234
↓ 2 callersMethodforwarded_allow_networks
Return cached network objects for forwarded_allow_ips (internal use).
gunicorn/config.py:182
↓ 2 callersFunctiongenerate
()
tests/docker/asgi_compliance/apps/framework_apps.py:136
↓ 2 callersFunctiongenerate
()
tests/docker/asgi_framework_compat/frameworks/litestar_app/app.py:124
↓ 2 callersFunctiongenerate
()
tests/docker/asgi_framework_compat/frameworks/starlette_app/app.py:154
↓ 2 callersFunctiongenerate
()
tests/docker/asgi_framework_compat/frameworks/fastapi_app/app.py:155
↓ 2 callersFunctiongenerate
()
tests/docker/asgi_framework_compat/frameworks/django_app/views.py:83
↓ 2 callersFunctiongenerate
()
tests/docker/asgi_framework_compat/frameworks/quart_app/app.py:113
↓ 2 callersMethodget_data
(self, unreader, buf)
gunicorn/http/body.py:114
↓ 2 callersFunctionget_default_config_file
()
gunicorn/config.py:617
↓ 2 callersMethodget_logs
Get container logs.
tests/docker/per_app_allocation/test_per_app_e2e.py:128
↓ 2 callersMethodget_thread_pool
Override this method to customize how the thread pool is created
gunicorn/workers/gthread.py:276
↓ 2 callersMethodgetsize
(self, size)
gunicorn/http/body.py:205
↓ 2 callersMethodhandle_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 callersMethodhandle_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 callersMethodhandle_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 callersMethodhandle_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 callersMethodhandle_http2_request
Handle a single HTTP/2 request/stream.
gunicorn/workers/gthread.py:633
↓ 2 callersFunctionhas_logging_config
(config_file)
gunicorn/app/pasterapp.py:26
↓ 2 callersMethodheartbeat
(self)
gunicorn/workers/gtornado.py:53
↓ 2 callersMethodhelp
Return list of available commands. Returns: Dictionary with commands and descriptions
gunicorn/ctl/handlers.py:561
↓ 2 callersMethodinit
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 callersMethodinit
Called once when dirty worker starts.
examples/dirty_example/dirty_app.py:37
↓ 2 callersMethodinit_signals
Set up signal handlers.
gunicorn/dirty/arbiter.py:266
↓ 2 callersMethodinit_signals
Set up signal handlers.
gunicorn/dirty/worker.py:178
↓ 2 callersMethodis_already_handled
(self, respiter)
gunicorn/workers/base_async.py:32
↓ 2 callersFunctionis_compose_available
Check if docker compose is available.
tests/docker/uwsgi/conftest.py:35
↓ 2 callersFunctionis_docker_available
Check if Docker is available.
tests/docker/uwsgi/conftest.py:22
↓ 2 callersMethodkill_process
Send a signal to a process in the container.
tests/docker/per_app_allocation/test_per_app_e2e.py:169
↓ 2 callersMethodload_config_from_file
(self, filename)
gunicorn/app/base.py:151
↓ 2 callersMethodload_default_config
(self)
gunicorn/app/base.py:41
↓ 2 callersMethodload_wsgi
(self)
gunicorn/workers/base.py:147
↓ 2 callersMethodlog
Log a given statistic if metric, value and type are present
gunicorn/instrument/statsd.py:68
↓ 2 callersFunctionloggers
get list of all loggers
gunicorn/glogging.py:88
↓ 2 callersFunctionmake_uwsgi_packet_with_body
Create uWSGI packet with body for testing.
tests/test_uwsgi.py:42
↓ 2 callersMethodmurder_pending
Close expired pending connections (waiting for initial data).
gunicorn/workers/gthread.py:364
↓ 2 callersMethodmurder_workers
Kill workers that have timed out.
gunicorn/dirty/arbiter.py:1051
↓ 2 callersMethodnotify
(self)
gunicorn/workers/workertmp.py:42
↓ 2 callersMethodnworkers_changed
(server, new_value, old_value)
gunicorn/config.py:2082
↓ 2 callersMethodon_dirty_starting
(arbiter)
gunicorn/config.py:3156
↓ 2 callersMethodparse_headers
(self, data, from_trailer=False)
gunicorn/http/message.py:329
↓ 2 callersFunctionpeer_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 callersMethodread
(self, size)
gunicorn/http/body.py:126
↓ 2 callersMethodread
(self, size)
gunicorn/http/body.py:157
↓ 2 callersMethodreadexactly
(self, n)
benchmarks/dirty_streaming.py:94
↓ 2 callersMethodreadlines
(self, size=None)
gunicorn/http/body.py:263
↓ 2 callersMethodreap_dirty_arbiter
\ Reap the dirty arbiter process if it has exited.
gunicorn/arbiter.py:962
↓ 2 callersMethodreload
Reload workers (SIGHUP handling).
gunicorn/dirty/arbiter.py:1095
↓ 2 callersMethodreload
Trigger graceful reload (equivalent to SIGHUP). Returns: Dictionary with status
gunicorn/ctl/handlers.py:419
↓ 2 callersMethodrename
(self, path)
gunicorn/pidfile.py:48
↓ 2 callersMethodreopen
Reopen log files (equivalent to SIGUSR1). Returns: Dictionary with status
gunicorn/ctl/handlers.py:430
↓ 2 callersMethodresize
Resize an image. Equivalent to Celery: @app.task def resize_image(image_path, width, height):
examples/celery_alternative/tasks.py:193
↓ 2 callersFunctionrun
\ The ``gunicorn`` command line runner for launching Gunicorn with generic WSGI applications.
gunicorn/app/wsgiapp.py:60
↓ 2 callersMethodrun
\ 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 callersMethodsend
(message)
gunicorn/asgi/protocol.py:1136
↓ 2 callersFunctionsend_error
Send an error response.
tests/docker/asgi_compliance/apps/http_app.py:586
↓ 2 callersMethodsend_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 callersFunctionserialize_scope
Convert ASGI scope to JSON-serializable dict.
tests/docker/asgi_framework_compat/frameworks/litestar_app/app.py:40
↓ 2 callersFunctionserialize_scope
Convert ASGI scope to JSON-serializable dict.
tests/docker/asgi_framework_compat/frameworks/starlette_app/app.py:66
↓ 2 callersFunctionserialize_scope
Convert ASGI scope to JSON-serializable dict.
tests/docker/asgi_framework_compat/frameworks/fastapi_app/app.py:62
↓ 2 callersFunctionserialize_scope
Convert ASGI scope to JSON-serializable dict.
tests/docker/asgi_framework_compat/frameworks/blacksheep_app/app.py:42
↓ 2 callersFunctionserialize_scope
Convert ASGI scope to JSON-serializable dict.
tests/docker/asgi_framework_compat/frameworks/quart_app/app.py:40
↓ 2 callersMethodset_body_reader
(self)
gunicorn/http/message.py:404
↓ 2 callersMethodsettimeout
(self, timeout)
tests/dirty/test_client_streaming.py:48
↓ 2 callersMethodsetup
(self, app)
gunicorn/arbiter.py:109
↓ 2 callersMethodsetup
(self)
tests/docker/dirty_ttin_ttou/app.py:30
↓ 2 callersMethodshould_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 callersMethodshow_config
Return current effective configuration. Returns: Dictionary of configuration values
gunicorn/ctl/handlers.py:129
↓ 2 callersMethodshow_dirty
Return dirty workers and apps information. Returns: Dictionary with: - enabled: Whether dirty arbiter is run
gunicorn/ctl/handlers.py:69
↓ 2 callersMethodshow_stats
Return server statistics. Returns: Dictionary with: - uptime: Seconds since arbiter started - pi
gunicorn/ctl/handlers.py:164
↓ 2 callersMethodstream_lines
Stream response lines from URL.
tests/docker/asgi_compliance/conftest.py:344
↓ 2 callersFunctionsync_gen
()
benchmarks/dirty_streaming.py:214
↓ 2 callersMethodszread
(self, func, sizes)
tests/treq.py:160
↓ 2 callersMethodtake_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 callersMethodtimer
(self, name, value)
gunicorn/instrument/statsd.py:122
↓ 2 callersMethodwait_closed
(self)
tests/test_dirty_arbiter.py:60
↓ 2 callersMethodwait_closed
(self)
tests/dirty/test_worker_streaming.py:57
↓ 2 callersMethodwatchdog
(self)
gunicorn/workers/gtornado.py:45
↓ 2 callersMethodworker_abort
(worker)
gunicorn/config.py:1975
↓ 2 callersMethodworker_exit
(server, worker)
gunicorn/config.py:2065
← previousnext →601–700 of 4,774, ranked by callers