Starlite Attributes

1 attribute in this category.1 deprecated

1 attribute

Deprecated Attributes

These attributes are deprecated and should not be used in new code. See each attribute for migration guidance.

starlite.middleware_nameDeprecated

stringScrub: ManualVisibility: PublicOTel: False

The name of the Starlite middleware.

ExamplesAuthenticationMiddleware

Use middleware.name instead.

This attribute is being deprecated in favor of middleware.name, which is the framework-agnostic replacement.

Status: backfill

Changelog
next#519Added starlite.middleware_name attribute
Raw JSON
{
  "key": "starlite.middleware_name",
  "brief": "The name of the Starlite middleware.",
  "type": "string",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": false,
  "visibility": "public",
  "examples": [
    "AuthenticationMiddleware"
  ],
  "deprecation": {
    "replacement": "middleware.name",
    "reason": "This attribute is being deprecated in favor of middleware.name, which is the framework-agnostic replacement.",
    "_status": "backfill"
  },
  "alias": [
    "middleware.name"
  ],
  "changelog": [
    {
      "version": "next",
      "prs": [
        519
      ],
      "description": "Added starlite.middleware_name attribute"
    }
  ]
}