XHTTP: Add "stream-up" mode for client & server (#3994)

This commit is contained in:
RPRX
2024-11-09 11:05:41 +00:00
committed by GitHub
parent 94c02f090e
commit bc4bf3d38f
8 changed files with 164 additions and 77 deletions
@@ -14,6 +14,10 @@ import (
// has no fields because everything is global state :O)
type BrowserDialerClient struct{}
func (c *BrowserDialerClient) OpenUpload(ctx context.Context, baseURL string) io.WriteCloser {
panic("not implemented yet")
}
func (c *BrowserDialerClient) OpenDownload(ctx context.Context, baseURL string) (io.ReadCloser, gonet.Addr, gonet.Addr, error) {
conn, err := browser_dialer.DialGet(baseURL)
dummyAddr := &gonet.IPAddr{}