
    ,h                         d dl mZ d dlmZ d dlmZ d dlmZ d dlmZ d dlmZ d dlmZ d dlm	Z	 	 d d	l
Z
	 d d	lZ G d
 de      Z G d de      Zy	# e$ r d	Z
Y %w xY w# e$ r d	ZY -w xY w)    )Any)FileResponse)HTMLResponse)JSONResponse)PlainTextResponse)RedirectResponse)Response)StreamingResponseNc                        e Zd ZdZdedefdZy)UJSONResponsez
    JSON response using the high-performance ujson library to serialize data to JSON.

    Read more about it in the
    [FastAPI docs for Custom Response - HTML, Stream, File, others](https://fastapi.tiangolo.com/advanced/custom-response/).
    contentreturnc                 h    t         J d       t        j                  |d      j                  d      S )Nz,ujson must be installed to use UJSONResponseF)ensure_asciizutf-8)ujsondumpsencodeselfr   s     S/var/www/html/Resume-Scraper/venv/lib/python3.12/site-packages/fastapi/responses.pyrenderzUJSONResponse.render   s-     P"PP{{77>>wGG    N__name__
__module____qualname____doc__r   bytesr    r   r   r   r      s    Hc He Hr   r   c                        e Zd ZdZdedefdZy)ORJSONResponsez
    JSON response using the high-performance orjson library to serialize data to JSON.

    Read more about it in the
    [FastAPI docs for Custom Response - HTML, Stream, File, others](https://fastapi.tiangolo.com/advanced/custom-response/).
    r   r   c                     t         J d       t        j                  |t         j                  t         j                  z        S )Nz.orjson must be installed to use ORJSONResponse)option)orjsonr   OPT_NON_STR_KEYSOPT_SERIALIZE_NUMPYr   s     r   r   zORJSONResponse.render,   s8    !S#SS||F33f6P6PP
 	
r   Nr   r   r   r   r!   r!   $   s    
c 
e 
r   r!   )typingr   starlette.responsesr   r   r   r   r   r	   r
   r   ImportErrorr$   r   r!   r   r   r   <module>r*      sr     < < < F D 4 F


HL 
H
\ 
/  E  Fs"   A A AAA)(A)