This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<configure | |
xmlns="http://namespaces.zope.org/zope" | |
xmlns:meta="http://namespaces.zope.org/meta" | |
xmlns:five="http://namespaces.zope.org/five"> | |
<include package="Zope2.App" /> | |
<include package="Products.Five" /> | |
<meta:redefinePermission from="zope2.Public" to="zope.Public" /> | |
<!-- Load the meta --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {isServer} from 'solid-js/web' | |
import {createRouteData} from 'solid-start' | |
import {useRequest} from 'solid-start/server' | |
export default function FormPage() { | |
const postData = createRouteData(async () => { | |
const event = useRequest() | |
if (!isServer || event.request.method !== 'POST') { | |
return undefined | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import aioftp | |
from fastapi import FastAPI, HTTPException, Request | |
from fastapi.responses import StreamingResponse | |
app = FastAPI() | |
@app.get('/fetch/{filename}', name='fetch') | |
async def ftp_fetch(request: Request, filename: str): | |
return StreamingResponse( | |
stream_file(filename), |
OlderNewer