🔍 Code Extractor

Search Components

Full-Text: Fast keyword matching | Semantic: AI-powered understanding of intent (finds similar concepts)

Search Results for "middleware"

Found 13 matching component(s)

  • function login_required

    A Flask decorator that enforces authentication requirements on routes by checking for user session data and redirecting unauthenticated users to the login page.

    File: /tf/active/vicechatdev/docchat/app.py

    authentication decorator flask security session-management
  • function internal_error

    Flask error handler that catches internal server errors (HTTP 500), logs them, and returns a standardized JSON error response.

    File: /tf/active/vicechatdev/docchat/app.py

    flask error-handler http-500 exception-handling logging
  • function add_cache_headers

    A Flask after_request decorator function that adds HTTP cache control headers to responses based on the application's debug mode, content type, and request endpoint.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py

    flask http-headers caching cache-control middleware
  • function is_authenticated

    Checks if a user is authenticated by verifying the presence of 'user' and 'access_token' keys in the Flask session object.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py

    authentication authorization session-management flask security
  • function require_auth_v1

    A Flask decorator that enforces authentication by checking if a user is authenticated before allowing access to a protected route, redirecting to login if not authenticated.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py

    authentication decorator flask authorization security
  • function add_cache_headers_v1

    Flask after_request decorator function that adds HTTP cache control headers to responses based on debug mode, endpoint type, and request path.

    File: /tf/active/vicechatdev/vice_ai/app.py

    flask http-headers caching cache-control middleware
  • function require_auth

    A decorator function that enforces authentication requirements on Flask route handlers by checking if a user is authenticated before allowing access to the decorated function.

    File: /tf/active/vicechatdev/vice_ai/new_app.py

    decorator authentication authorization flask security
  • function not_found_v2

    Flask error handler that returns a JSON response with a 404 status code when a resource is not found.

    File: /tf/active/vicechatdev/vice_ai/new_app.py

    flask error-handler 404 not-found json-response
  • function handle_exception

    Flask error handler that catches all unhandled exceptions, logs them, and returns a generic JSON error response with HTTP 500 status.

    File: /tf/active/vicechatdev/vice_ai/new_app.py

    flask error-handling exception-handler logging web-api
  • function get_documents_v1

    Flask API endpoint that retrieves all documents belonging to the currently authenticated user and returns them as JSON.

    File: /tf/active/vicechatdev/vice_ai/new_app.py

    flask api rest endpoint documents
  • function log_controller_action

    A decorator factory that logs controller actions with different log levels based on whether the action is routine or non-routine, and handles exceptions during execution.

    File: /tf/active/vicechatdev/CDocs/controllers/__init__.py

    decorator logging controller error-handling monitoring
  • function validate_input

    A decorator factory that creates a decorator to validate function input arguments against a provided schema. Currently a placeholder implementation that passes through without validation.

    File: /tf/active/vicechatdev/CDocs/controllers/__init__.py

    decorator validation input-validation schema placeholder
  • class ProxyFallbackHandler

    A Tornado RequestHandler that wraps another HTTP server callback and proxies requests by modifying the request path before delegating to a fallback handler.

    File: /tf/active/vicechatdev/patches/server.py

    tornado proxy request-handler path-rewriting http-server

Search Examples