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

This commit is contained in:
RPRX authored and GitHub committed 2024-11-09 11:05:41 +00:00
1 parent 94c02f090e
commit bc4bf3d38f
8 files changed
+164 -77

No files matched your search

@@ -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{}