
    3 d=                     v    d Z ddlmZ ddlmZ ddlmZ ddlm	Z	  e	ej
                  Z G d de          ZdS )z
This module implements the XmlRpcRequest class which is a more convenient class
(that Request) to generate xml-rpc requests.

See documentation in docs/topics/request-response.rst
    N)Optional)Request)get_func_argsc                   6     e Zd Zdddee         f fdZ xZS )XmlRpcRequestN)encodingr   c                P   dvr8dv r4t          fdt          D                       }t          j        di |d<                       dd                               dd           ||d<    t                      j        |i  | j                            d	d
           d S )Nbodyparamsc              3   N   K   | ]}|v |                     |          fV   d S )N)pop).0kkwargss     7lib/python3.11/site-packages/scrapy/http/request/rpc.py	<genexpr>z)XmlRpcRequest.__init__.<locals>.<genexpr>   s;      LLQVLq&**Q--(LLLLLL    methodPOSTdont_filterTr   zContent-Typeztext/xml )dict
DUMPS_ARGS	xmlrpclibdumps
setdefaultsuper__init__headers)selfr   argsr   kw	__class__s      ` r   r   zXmlRpcRequest.__init__   s     	3H$6 	3LLLL*LLLLLB&_22r22F6N 	(F+++ 	-...  	*!)F:$)&)))
;;;;;r   )__name__
__module____qualname__r   strr   __classcell__)r#   s   @r   r   r      sU        8< < < < < < < < < < < < < <r   r   )__doc__xmlrpc.clientclientr   typingr   scrapy.http.requestr   scrapy.utils.pythonr   r   r   r   r   r   r   <module>r/      s     " ! ! ! ! !       ' ' ' ' ' ' - - - - - -]9?++
< < < < <G < < < < <r   