![]() Server : Apache/2.4.52 (Ubuntu) System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64 User : www-data ( 33) PHP Version : 8.1.2-1ubuntu2.21 Disable Function : NONE Directory : /lib/python3/dist-packages/twisted/web/__pycache__/ |
o �b�� � @ s d Z ddlZddlZddlZddlZddlZddlZddlmZ ddl m Z mZmZ ddl mZmZ ddlmZ ddlmZ ddlmZmZ dd lmZmZmZ dd lmZmZ ddlmZ ddl m!Z! dd l"m#Z# ddl$m%Z% ddl&m'Z'm(Z(m)Z) ddl*m+Z+ e(�,d�Z-dd� Z.G dd� de(j/�Z0eedddd��dd� �Z1dd� Z2G dd� de(j/�Z3G dd� dej4�Z5dej6fd d!�Z7d"d#� Z8G d$d%� d%e(j/ej9�Z:eej;�G d&d'� d'��Z<G d(d)� d)e<�Z=G d*d+� d+e<�Z>G d,d-� d-e<�Z?G d.d/� d/e(j/�Z@d0d1� ZAG d2d3� d3e(j/�ZBdS )4z& Static resources for L{twisted.web}. � N)�escape)�Any�Callable�Dict)�quote�unquote)�implementer)�Version)�abstract� interfaces)� components�filepath�log)�nativeString� networkString)� deprecated)�platformType)�URL)�InsensitiveDict)�http�resource�server)� redirectTozInvalid request URL.c C s | dkpd| v pt tj�| v S )Ns ..� /)r �os�sep��path� r �4/usr/lib/python3/dist-packages/twisted/web/static.py�isDangerous% s r c @ s$ e Zd ZdZdd� Zdd� ZeZdS )�Dataz/ This is a static, in-memory resource. c C s t j�| � || _|| _dS )z� @param data: The bytes that make up this data resource. @type data: L{bytes} @param type: A native string giving the Internet media type for this content. @type type: L{str} N)r �Resource�__init__�data�type)�selfr$ r% r r r r# . s z Data.__init__c C s>