+
    xȇi                        R t ^ RIHt ^ RIt^ RIHt ^ RIt^ RIHt ^ RI	H
u Ht ^ RIt^ RIHt ]P$                  P&                  ]P$                  P(                  ]P$                  P+                  R4      .tR tR tR tR	 tR
 tR tR tR tR tR t ]P$                  PC                  R]]PD                  3]]PF                  3]R 3]PH                  ! ]]! ]PJ                  RR7      ]PL                  ! R4      R7      ]PH                  ! ]]! ]PJ                  RR7      ]PL                  ! R4      ]PL                  ! R4      ]P$                  PO                  ]! 4       RR7      .R7      ]]PP                  3] ]PR                  3]]PD                  3]]PF                  3.	4      ]P$                  PC                  RRRR/RRRR/.4      R 4       4       t*]P$                  PC                  RRR.4      R  4       t+R# )!z9
Tests for the pandas custom headers in http(s) requests
)partialN)BytesIO)using_string_dtypez=ignore:Passing a BlockManager to DataFrame:DeprecationWarningc           	         \        4       ;_uu_ 4       p\        P                  ! VR R7      ;_uu_ 4       pVP                  V 4       RRR4       VP	                  4       uuRRR4       #   + '       g   i     L*; i  + '       g   i     R# ; i)w)fileobjmodeN)r   gzipGzipFilewritegetvalue)response_bytesbiozippers   &  q/Users/max/.openclaw/workspace/postharvest/venv/lib/python3.14/site-packages/pandas/tests/io/test_http_headers.py
gzip_bytesr      sP    	c]]3S11VLL( 2||~ 
11 
s"   !A;A(	A;(A83A;;B	c                 D    V P                  R R7      P                  R4      # F)indexutf-8)to_csvencodedfs   &r   csv_responderr   "   s    9959!((11    c                 *    \        \        V 4      4      # N)r   r   r   s   &r   gz_csv_responderr   &   s    mB'((r   c                 @    V P                  4       P                  R 4      # )r   )to_jsonr   r   s   &r   json_responderr!   *   s    ::<w''r   c                 *    \        \        V 4      4      # r   )r   r!   r   s   &r   gz_json_responderr#   .   s    nR())r   c                 D    V P                  R R7      P                  R4      # r   )to_htmlr   r   s   &r   html_responderr&   2   s    ::E:"))'22r   c                 (    V P                  R RR7      # )Fpyarrow)r   engine)
to_parquetr   s   &r   parquetpyarrow_reponderr+   6   s    ==uY=77r   c                     ^ RI pV P                  RRRRR7       VP                  RR4      ;_uu_ 4       pVP                  4       uuRRR4       #   + '       g   i     R# ; i)    Nz'memory://fastparquet_user_agent.parquetFfastparquet)r   r)   compressionrb)fsspecr*   openread)r   r1   fs   &  r   parquetfastparquet_responderr5   :   sS     MM1	   
>	E	Evvx 
F	E	E	Es   AA 	c                     \        4       ;_uu_ 4       pV P                  V4       VP                  4       uuR R R 4       #   + '       g   i     R # ; ir   )r   	to_pickler   r   r   s   & r   pickle_respnderr9   M   s,    	c
S||~ 
s	   !?A	c                     \        4       ;_uu_ 4       pV P                  VR R7       VP                  4       uuRRR4       #   + '       g   i     R# ; i)F)write_indexN)r   to_statar   r8   s   & r   stata_responderr=   S   s0    	c
CU+||~ 
s   #AA	zresponder, read_methodc                  <    \         P                  ! V / VB ^ ,          # )r-   )pd	read_html)argskwargss   *,r   <lambda>rC   `   s    BLL$$A&$A!$Dr   r(   )r)   )marksr.   r1   zTODO(infer_string)reasonstorage_options
User-AgentfooAuthbarc                 N   \         P                  ! R R./4      p. ROpRV P                  9   d   RR/pVf   TpMW6,          pMRp\        V4      P	                  V'       d   VP                  4       M. 4      pVP                  V ! V4      VR7       V! VP                  VR7      p\        P                  ! W4       \        VP                  ^ ,          P                  4      p	V F5  p
V	P                  V
4      pV'       g   K  W9   g   K&  WV
,          8X  d   K5  Q h	  V	'       d   Q hR# )	abgzzContent-Encodingr	   N)contentheaders)rF   )zAccept-EncodingHost
ConnectionrG   )r?   	DataFrame__name__setunionkeysserve_contenturltmassert_frame_equaldictrequestsrP   pop)	responderread_method
httpserverrF   expecteddefault_headersextraexpected_headersresultrequest_headersheaderexps   &&&&        r   test_request_headersrj   Y   s	   L ||S3%L)HMOy!!!#V,"#O$O?+11"1r Yx%8%HIF&+:..q199:O"!!&)?v8&1111 #
 r   r)   c                    R RRR/p\         P                  ! V 4       \        P                  ! RR./4      pRp\         P                  ! \
        VR7      ;_uu_ 4        VP                  RWR	7       R
R
R
4       R
#   + '       g   i     R
# ; i)rG   customrI   other_customcolumn_namecolumn_valuezxstorage_options passed with file object or non-fsspec file path|storage_options passed with buffer, or non-supported URL)matchz/tmp/junk.parquet)rF   r)   N)pytestimportorskipr?   rS   raises
ValueErrorr*   )r)   rP   true_dfmsgs   &   r   ,test_to_parquet_to_disk_with_storage_optionsrw      s|     	hG
 llMN+;<=G	C  
z	-	-.W 
.	-	-	-s   A::B	),__doc__	functoolsr   r	   ior   rq   pandas._configr   pandas.util._test_decoratorsutil_test_decoratorstdpandasr?   pandas._testing_testingrZ   mark
single_cpunetworkfilterwarnings
pytestmarkr   r   r   r!   r#   r&   r+   r5   r9   r=   parametrizeread_csv	read_jsonparamread_parquet
skip_if_noxfailread_pickle
read_statarj   rw    r   r   <module>r      s        - ) )   KK
KK
KKG
2)(*38& 	$	&D	
 	#BOOI6--	*	

 	(BOOM:m,h'!!"4"6?R!S	
 
"..)	"--(	2;;'	BLL)1: 	u	ufe,;J6 XXr   