MCPcopy Create free account

hub / github.com/pallets/werkzeug / functions

Functions2,000 in github.com/pallets/werkzeug

Methodcontent_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
Methodcontent_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
Methodcontent_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
Methodcontent_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
Methodcontent_type
The content-type sent in the header. Usually not available
src/werkzeug/datastructures.py:2943
Functioncookie_app
A WSGI application which sets a cookie, and returns as a response any cookie which exists.
tests/test_test.py:25
Methodcookies
A :class:`dict` with the contents of all cookies transmitted with the request.
src/werkzeug/sansio/request.py:247
Methodcopy
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
Methodcopy
(self)
src/werkzeug/datastructures.py:1401
Methodcopy
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
Methodcopy
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
Methodcopy
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
Methodcopy
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
Methodcount
(self)
examples/couchy/utils.py:67
Methodcount
(self)
examples/simplewiki/utils.py:136
Methodcount
(self)
examples/shorty/utils.py:77
Methodcreate_instance
(module=None)
tests/test_datastructures.py:50
Methoddata
Contains the incoming request data as string in case it came with a mimetype Werkzeug does not handle.
src/werkzeug/wrappers/request.py:357
Methoddebug_application
Run the application and conserve the traceback frames.
src/werkzeug/debug/__init__.py:318
Methoddecode_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
Functiondecorate
(f)
examples/couchy/utils.py:30
Functiondecorate
(f)
examples/plnt/utils.py:53
Functiondecorate
(f)
examples/shorty/utils.py:40
Functiondepends_on_close
(environ, start_response)
tests/test_test.py:646
Methoddescription
(self)
src/werkzeug/exceptions.py:208
Methoddispatch
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
Methoddispatch_request
(self, environ, start_response)
examples/plnt/webapp.py:34
Methoddispatch_request
Dispatch an incoming request.
examples/simplewiki/application.py:54
Functiondisplay
(request, uid)
examples/couchy/views.py:40
Functiondisplay
(request, uid)
examples/shorty/views.py:36
Methoddisplayhook
(obj: object)
src/werkzeug/debug/console.py:82
Methoddo_something
()
tests/test_debug.py:226
Functiondummy_application
(environ, start_response)
tests/middleware/test_lint.py:10
Functiondummy_application
(environ, start_response)
tests/middleware/test_dispatcher.py:12
Functiondump_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
Functiondump_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
Functioneasteregged
( environ: "WSGIEnvironment", start_response: "StartResponse" )
src/werkzeug/_internal.py:517
Functionencode_multipart
Like `stream_encode_multipart` but returns a tuple in the form (``boundary``, ``data``) where data is bytes.
src/werkzeug/test.py:142
Methodencode_netloc
Returns the netloc unchanged as bytes.
src/werkzeug/urls.py:367
Methodencoding
(self)
src/werkzeug/wrappers/response.py:884
Methodentries
(self)
examples/couchy/utils.py:71
Methodentries
(self)
examples/plnt/utils.py:113
Methodentries
(self)
examples/simplewiki/utils.py:112
Methodentries
(self)
examples/shorty/utils.py:81
Methodeval
(self, code: str)
src/werkzeug/debug/tbtools.py:377
Functionexample
example doc
tests/test_local.py:186
Methodexecute
(app: "WSGIApplication")
src/werkzeug/serving.py:319
Methodexhaust
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
Functionexhaust_stream
Helper decorator for methods that exhausts the stream on return.
src/werkzeug/formparser.py:135
Functionexport
Decorator for registering view functions and adding templates to it.
examples/coolmagic/utils.py:24
Functionexpose
Register the function as view.
examples/i18nurls/application.py:17
Functionexpose
(rule, **kw)
examples/couchy/utils.py:29
Functionexpose
Expose this function to the web layer.
examples/plnt/utils.py:50
Functionexpose
(rule, **kw)
examples/shorty/utils.py:39
Methodextend
(self, iterable)
src/werkzeug/datastructures.py:75
Methodextend
(self, *args, **kwargs)
src/werkzeug/datastructures.py:1332
Functionexternal_redirect_demo_app
(environ, start_response)
tests/test_test.py:54
Functionexternal_subdomain_redirect_demo_app
(environ, start_response)
tests/test_test.py:59
Functionextract_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
Methodfail
(self, message: str)
src/werkzeug/formparser.py:374
Functionfailing_application
(request)
tests/test_wrappers.py:197
Methodfake_op
(self, other)
tests/test_local.py:360
Functionfget
(self)
src/werkzeug/datastructures.py:2562
Functionfget
(self: "Response")
src/werkzeug/sansio/response.py:38
Methodfiles
A :class:`FileMultiDict` of uploaded files. Use :meth:`~FileMultiDict.add_file` to add new files.
src/werkzeug/test.py:638
Methodfiles
: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
Functionfind_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
Methodflush
(self)
src/werkzeug/middleware/lint.py:107
Methodflush
(self)
src/werkzeug/wrappers/response.py:870
Functionfoo
testing
tests/test_utils.py:299
Functionfoo
(environ, start_response)
tests/test_wsgi.py:78
Methodform
A :class:`MultiDict` of form values.
src/werkzeug/test.py:629
Methodform
The form parameters. By default an :class:`~werkzeug.datastructures.ImmutableMultiDict` is returned from this function. This can be
src/werkzeug/wrappers/request.py:421
Functionform_data_consumer
(request)
tests/test_formparser.py:20
Methodfromkeys
(cls, keys, value=None)
src/werkzeug/datastructures.py:114
Methodfromkeys
(cls, keys, value=None)
src/werkzeug/datastructures.py:1435
Functionfset
(self, value)
src/werkzeug/datastructures.py:2565
Functionfset
( self: "Response", value: t.Optional[ t.Union[str, t.Dict[str, t.Union[str, int]]
src/werkzeug/sansio/response.py:47
Methodfull_path
Requested path, including the query string.
src/werkzeug/sansio/request.py:201
Methodget
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
Methodget
(self, key, default=None, type=None)
src/werkzeug/datastructures.py:1444
Methodget_all
( self, name: str, default: t.Optional[t.Iterable[str]] = None )
src/werkzeug/test.py:170
Functionget_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
Methodget_headers
( self, environ: t.Optional["WSGIEnvironment"] = None, scope: t.Optional[dict] = None,
src/werkzeug/exceptions.py:539
Functionget_hostname
(url)
examples/shortly/shortly.py:34
Functionget_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
Methodget_rules
Subclasses of `RuleFactory` have to override this method and return an iterable of rules.
src/werkzeug/routing/rules.py:134
Methodget_rules
(self, map: "Map")
src/werkzeug/routing/rules.py:163
Methodget_rules
(self, map: "Map")
src/werkzeug/routing/rules.py:189
Methodget_rules
(self, map: "Map")
src/werkzeug/routing/rules.py:214
Methodget_rules
(self, map: "Map")
src/werkzeug/routing/rules.py:261
Functionget_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
Methodget_source_by_code
(self, code: CodeType)
src/werkzeug/debug/console.py:128
Methodgetlist
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
Methodgetlist
(self, key, type=None)
src/werkzeug/datastructures.py:1455
Methodhandle
Handles a request ignoring dropped connections.
src/werkzeug/serving.py:358
Methodhandle_error
( self, request: t.Any, client_address: t.Union[t.Tuple[str, int], str] )
src/werkzeug/serving.py:772
Functionhandle_match
(m)
examples/plnt/utils.py:82
Methodhas_next
Return True if there are pages after the current one.
examples/couchy/utils.py:84
Methodhas_next
Return True if there are pages after the current one.
examples/plnt/utils.py:130
← previousnext →1,101–1,200 of 2,000, ranked by callers