Skip to main content

FileUrl

A type that will accept any file URL.

  • Host not required

Constructor

Signature

def FileUrl() - > null

Methods


_constraints()

def _constraints() - > [UrlConstraints](urlconstraints.md?sid=pydantic_networks_urlconstraints)

Defines the validation constraints for the FileUrl type, specifically restricting the protocol to the 'file' scheme.

Returns

TypeDescription
[UrlConstraints](urlconstraints.md?sid=pydantic_networks_urlconstraints)A configuration object that enforces the allowed URL schemes and host requirements.