Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pallets/werkzeug
/ functions
Functions
2,000 in github.com/pallets/werkzeug
⨍
Functions
2,000
◇
Types & classes
303
↳
Endpoints
1
Method
content_range
The ``Content-Range`` header as a :class:`~werkzeug.datastructures.ContentRange` object. Available even if the header is not set.
src/werkzeug/sansio/response.py:522
Method
content_security_policy
The ``Content-Security-Policy`` header as a :class:`~werkzeug.datastructures.ContentSecurityPolicy` object. Available even if the head
src/werkzeug/sansio/response.py:571
Method
content_security_policy_report_only
The ``Content-Security-policy-report-only`` header as a :class:`~werkzeug.datastructures.ContentSecurityPolicy` object. Available even
src/werkzeug/sansio/response.py:603
Method
content_type
The content type for the request. Reflected from and to the :attr:`headers`. Do not set if you set :attr:`files` or :attr:`form` for
src/werkzeug/test.py:536
Method
content_type
The content-type sent in the header. Usually not available
src/werkzeug/datastructures.py:2943
Function
cookie_app
A WSGI application which sets a cookie, and returns as a response any cookie which exists.
tests/test_test.py:25
Method
cookies
A :class:`dict` with the contents of all cookies transmitted with the request.
src/werkzeug/sansio/request.py:247
Method
copy
Return a shallow mutable copy of this object. Keep in mind that the standard library's :func:`copy` function is a no-op for this class
src/werkzeug/datastructures.py:278
Method
copy
(self)
src/werkzeug/datastructures.py:1401
Method
copy
Return a shallow mutable copy of this object. This returns a :class:`MultiDict` representing the data at the time of copying. The cop
src/werkzeug/datastructures.py:1499
Method
copy
Return a shallow mutable copy of this object. Keep in mind that the standard library's :func:`copy` function is a no-op for this class
src/werkzeug/datastructures.py:1581
Method
copy
Return a shallow mutable copy of this object. Keep in mind that the standard library's :func:`copy` function is a no-op for this class
src/werkzeug/datastructures.py:1598
Method
copy
Return a shallow mutable copy of this object. Keep in mind that the standard library's :func:`copy` function is a no-op for this class
src/werkzeug/datastructures.py:1618
Method
count
(self)
examples/couchy/utils.py:67
Method
count
(self)
examples/simplewiki/utils.py:136
Method
count
(self)
examples/shorty/utils.py:77
Method
create_instance
(module=None)
tests/test_datastructures.py:50
Method
data
Contains the incoming request data as string in case it came with a mimetype Werkzeug does not handle.
src/werkzeug/wrappers/request.py:357
Method
debug_application
Run the application and conserve the traceback frames.
src/werkzeug/debug/__init__.py:318
Method
decode_query
Decodes the query part of the URL. Ths is a shortcut for calling :func:`url_decode` on the query argument. The arguments and keyword
src/werkzeug/urls.py:145
Function
decorate
(f)
examples/couchy/utils.py:30
Function
decorate
(f)
examples/plnt/utils.py:53
Function
decorate
(f)
examples/shorty/utils.py:40
Function
depends_on_close
(environ, start_response)
tests/test_test.py:646
Method
description
(self)
src/werkzeug/exceptions.py:208
Method
dispatch
Does the complete dispatching process. `view_func` is called with the endpoint and a dict with the values for the view. It should lo
src/werkzeug/routing/map.py:406
Method
dispatch_request
(self, environ, start_response)
examples/plnt/webapp.py:34
Method
dispatch_request
Dispatch an incoming request.
examples/simplewiki/application.py:54
Function
display
(request, uid)
examples/couchy/views.py:40
Function
display
(request, uid)
examples/shorty/views.py:36
Method
displayhook
(obj: object)
src/werkzeug/debug/console.py:82
Method
do_something
()
tests/test_debug.py:226
Function
dummy_application
(environ, start_response)
tests/middleware/test_lint.py:10
Function
dummy_application
(environ, start_response)
tests/middleware/test_dispatcher.py:12
Function
dump_age
Formats the duration as a base-10 integer. :param age: should be an integer number of seconds, a :class:`datetime.timedelta` obje
src/werkzeug/http.py:1014
Function
dump_csp_header
Dump a Content Security Policy header. These are structured into policies such as "default-src 'self'; script-src 'self'". .. versionadd
src/werkzeug/http.py:307
Function
easteregged
( environ: "WSGIEnvironment", start_response: "StartResponse" )
src/werkzeug/_internal.py:517
Function
encode_multipart
Like `stream_encode_multipart` but returns a tuple in the form (``boundary``, ``data``) where data is bytes.
src/werkzeug/test.py:142
Method
encode_netloc
Returns the netloc unchanged as bytes.
src/werkzeug/urls.py:367
Method
encoding
(self)
src/werkzeug/wrappers/response.py:884
Method
entries
(self)
examples/couchy/utils.py:71
Method
entries
(self)
examples/plnt/utils.py:113
Method
entries
(self)
examples/simplewiki/utils.py:112
Method
entries
(self)
examples/shorty/utils.py:81
Method
eval
(self, code: str)
src/werkzeug/debug/tbtools.py:377
Function
example
example doc
tests/test_local.py:186
Method
execute
(app: "WSGIApplication")
src/werkzeug/serving.py:319
Method
exhaust
Exhaust the stream by reading until the limit is reached or the client disconnects, discarding the data. :param chunk_size: How many
src/werkzeug/wsgi.py:948
Function
exhaust_stream
Helper decorator for methods that exhausts the stream on return.
src/werkzeug/formparser.py:135
Function
export
Decorator for registering view functions and adding templates to it.
examples/coolmagic/utils.py:24
Function
expose
Register the function as view.
examples/i18nurls/application.py:17
Function
expose
(rule, **kw)
examples/couchy/utils.py:29
Function
expose
Expose this function to the web layer.
examples/plnt/utils.py:50
Function
expose
(rule, **kw)
examples/shorty/utils.py:39
Method
extend
(self, iterable)
src/werkzeug/datastructures.py:75
Method
extend
(self, *args, **kwargs)
src/werkzeug/datastructures.py:1332
Function
external_redirect_demo_app
(environ, start_response)
tests/test_test.py:54
Function
external_subdomain_redirect_demo_app
(environ, start_response)
tests/test_test.py:59
Function
extract_path_info
Extracts the path info from the given URL (or WSGI environment) and path. The path info returned is a string. The URLs might also be IRIs. If
src/werkzeug/wsgi.py:347
Method
fail
(self, message: str)
src/werkzeug/formparser.py:374
Function
failing_application
(request)
tests/test_wrappers.py:197
Method
fake_op
(self, other)
tests/test_local.py:360
Function
fget
(self)
src/werkzeug/datastructures.py:2562
Function
fget
(self: "Response")
src/werkzeug/sansio/response.py:38
Method
files
A :class:`FileMultiDict` of uploaded files. Use :meth:`~FileMultiDict.add_file` to add new files.
src/werkzeug/test.py:638
Method
files
:class:`~werkzeug.datastructures.MultiDict` object containing all uploaded files. Each key in :attr:`files` is the name from the ``<i
src/werkzeug/wrappers/request.py:469
Function
find_modules
Finds all the modules below a package. This can be useful to automatically import all views / controllers so that their metaclasses / functio
src/werkzeug/utils.py:634
Method
flush
(self)
src/werkzeug/middleware/lint.py:107
Method
flush
(self)
src/werkzeug/wrappers/response.py:870
Function
foo
testing
tests/test_utils.py:299
Function
foo
(environ, start_response)
tests/test_wsgi.py:78
Method
form
A :class:`MultiDict` of form values.
src/werkzeug/test.py:629
Method
form
The form parameters. By default an :class:`~werkzeug.datastructures.ImmutableMultiDict` is returned from this function. This can be
src/werkzeug/wrappers/request.py:421
Function
form_data_consumer
(request)
tests/test_formparser.py:20
Method
fromkeys
(cls, keys, value=None)
src/werkzeug/datastructures.py:114
Method
fromkeys
(cls, keys, value=None)
src/werkzeug/datastructures.py:1435
Function
fset
(self, value)
src/werkzeug/datastructures.py:2565
Function
fset
( self: "Response", value: t.Optional[ t.Union[str, t.Dict[str, t.Union[str, int]]
src/werkzeug/sansio/response.py:47
Method
full_path
Requested path, including the query string.
src/werkzeug/sansio/request.py:201
Method
get
Return the default value if the requested data doesn't exist. If `type` is provided and is a callable it should convert the value, ret
src/werkzeug/datastructures.py:238
Method
get
(self, key, default=None, type=None)
src/werkzeug/datastructures.py:1444
Method
get_all
( self, name: str, default: t.Optional[t.Iterable[str]] = None )
src/werkzeug/test.py:170
Function
get_content_length
Returns the content length as an integer or ``None`` if unavailable or chunked transfer encoding is used. :param http_content_length: The Con
src/werkzeug/sansio/utils.py:145
Method
get_headers
( self, environ: t.Optional["WSGIEnvironment"] = None, scope: t.Optional[dict] = None,
src/werkzeug/exceptions.py:539
Function
get_hostname
(url)
examples/shortly/shortly.py:34
Function
get_query_string
Returns the ``QUERY_STRING`` from the WSGI environment. This also takes care of the WSGI decoding dance. The string returned will be restricte
src/werkzeug/wsgi.py:174
Method
get_rules
Subclasses of `RuleFactory` have to override this method and return an iterable of rules.
src/werkzeug/routing/rules.py:134
Method
get_rules
(self, map: "Map")
src/werkzeug/routing/rules.py:163
Method
get_rules
(self, map: "Map")
src/werkzeug/routing/rules.py:189
Method
get_rules
(self, map: "Map")
src/werkzeug/routing/rules.py:214
Method
get_rules
(self, map: "Map")
src/werkzeug/routing/rules.py:261
Function
get_script_name
Return the ``SCRIPT_NAME`` from the WSGI environment and decode it unless `charset` is set to ``None``. :param environ: WSGI environment to g
src/werkzeug/wsgi.py:215
Method
get_source_by_code
(self, code: CodeType)
src/werkzeug/debug/console.py:128
Method
getlist
Return the list of items for a given key. If that key is not in the `MultiDict`, the return value will be an empty list. Just like `get`,
src/werkzeug/datastructures.py:395
Method
getlist
(self, key, type=None)
src/werkzeug/datastructures.py:1455
Method
handle
Handles a request ignoring dropped connections.
src/werkzeug/serving.py:358
Method
handle_error
( self, request: t.Any, client_address: t.Union[t.Tuple[str, int], str] )
src/werkzeug/serving.py:772
Function
handle_match
(m)
examples/plnt/utils.py:82
Method
has_next
Return True if there are pages after the current one.
examples/couchy/utils.py:84
Method
has_next
Return True if there are pages after the current one.
examples/plnt/utils.py:130
← previous
next →
1,101–1,200 of 2,000, ranked by callers