![]() 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 �b5 � @ s� d Z g d�ZddlZddlmZmZmZ ddlmZ ddl m Z ddlmZ ddl mZmZ dd lmZ G d d� de�Zdd � Zee�G dd� d��Zdd� ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�Zee�G dd� de e���ZdS )z4 Implementation of the lowest-level Resource class. )� IResource�getChildForRequest�Resource� ErrorPage� NoResource�ForbiddenResource�EncodingResourceWrapper� N)� Attribute� Interface�implementer)�nativeString)�proxyForInterface)�prefixedMethodNames)� FORBIDDEN� NOT_FOUND)�UnsupportedMethodc @ s0 e Zd ZdZed�Zdd� Zdd� Zdd� Zd S ) r z A web resource. z� Signal if this IResource implementor is a "leaf node" or not. If True, getChildWithDefault will not be called on this Resource. c C � dS )a Return a child with the given name for the given request. This is the external interface used by the Resource publishing machinery. If implementing IResource without subclassing Resource, it must be provided. However, if subclassing Resource, getChild overridden instead. @param name: A single path component from a requested URL. For example, a request for I{http://example.com/foo/bar} will result in calls to this method with C{b"foo"} and C{b"bar"} as values for this argument. @type name: C{bytes} @param request: A representation of all of the information about the request that is being made for this child. @type request: L{twisted.web.server.Request} N� )�name�requestr r �6/usr/lib/python3/dist-packages/twisted/web/resource.py�getChildWithDefault+ � zIResource.getChildWithDefaultc C r )a� Put a child IResource implementor at the given path. @param path: A single path component, to be interpreted relative to the path this resource is found at, at which to put the given child. For example, if resource A can be found at I{http://example.com/foo} then a call like C{A.putChild(b"bar", B)} will make resource B available at I{http://example.com/foo/bar}. @type path: C{bytes} Nr )�path�childr r r �putChild>