Method: flask.app.Flask.make_default_options_response
Calls: 10, Exceptions: 0, Paths: 1Back
Path 1: 10 calls (1.0)
Response (10)
1def make_default_options_response(self) -> Response:
2 """This method is called to create the default ``OPTIONS`` response.
3 This can be changed through subclassing to change the default
4 behavior of ``OPTIONS`` responses.
5
6 .. versionadded:: 0.7
7 """
8 adapter = request_ctx.url_adapter
9 methods = adapter.allowed_methods() # type: ignore[union-attr]
10 rv = self.response_class()
11 rv.allow.update(methods)
12 return rv