xiaojin20
xiaojin20
libgc-dev libgc-devel libgc-static
termux 👍 pkg install clang libexecinfo libgc libgc-static make git
cp /data/data/com.termux/files/usr/var/lib/proot-distro/installed-rootfs/ubuntu/usr/lib/aarch64-linux-gnu/libgc.a ./
安装aarch64-linux-gnu,重aarch64-linux-gnu安装路径复制,libgc.a
用find命令 全系统, 搜索libgc.a 这文件在安装gcc时,是默认安装的。
来自vlang vweb.v pub const mime_types = { '.aac': 'audio/aac' '.abw': 'application/x-abiword' '.arc': 'application/x-freearc' '.avi': 'video/x-msvideo' '.azw': 'application/vnd.amazon.ebook' '.bin': 'application/octet-stream' '.bmp': 'image/bmp' '.bz': 'application/x-bzip' '.bz2': 'application/x-bzip2' '.cda': 'application/x-cdf' '.csh': 'application/x-csh' '.css':...
可以是这样的: @app.get("/cookie/") def create_cookie(): response = Response(....) response.set_custom_header("cookie", "cookievalue") #....set_custom_header("server_id","1") #....set_custom_header("server_id","2") #可以是通用的,用户自定义添加,设定。 #return response //自动返回,或者自动添加到response中,无需显示返回。 return serve_html("./customheader.html")
request.get_custom_header("server_id","2")
File "/usr/local/lib/python3.11/dist-packages/robyn/router.py", line 131, in async_inner_handler await handler(*args, **kwargs), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/root/www/website.py", line 122, in logindata Response.headers["server_id"]=2 ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^ TypeError: 'getset_descriptor' object...
> @xiaojin20 , if it is just header , you should be able to do > > ``` > response.headers["server_id"]=2 > ``` > > I can double check again :D...