Skip to content

Add send flavor with redirect support #686

Open
moigagoo wants to merge 5 commits into
masterfrom
feature/send_with_redirect
Open

Add send flavor with redirect support #686
moigagoo wants to merge 5 commits into
masterfrom
feature/send_with_redirect

Conversation

@moigagoo

@moigagoo moigagoo commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

While migrating Nimble to Chronos for downloads (PR) I bumped into that fact that send doesn't handle redirects. This makes sense as fetch, a higher-level proc, does that. But I needed redirect support to handle streaming download so I wrote a short helper proc.

But it would be cool to just use what Chronos provides without workarounds. So I'm adding redirect support to send in Chronos.

To preserve backward compatibility and make things symmetrical between send and fetch, I've added send that handles redirections and takes a session and a URL just like there is a fetch that handles redirections and takes a session and a URL.

The old fetch that did the redirection handling internally how uses the new send is has become much smaller.

moigagoo added 2 commits July 8, 2026 19:02
The new proc mirrors `fetch`. Also, `fetch` has been reimplemented using
the new `send.`
The new proc mirrors `fetch`. Also, `fetch` has been reimplemented using
the new `send.`
@moigagoo moigagoo changed the title Add send flavor for HttpSessionRef and Uri Add send flavor with redirect support Jul 8, 2026
moigagoo added 3 commits July 8, 2026 20:39
…s redirections.

The new proc mirrors `fetch`. Also, `fetch` has been reimplemented using
the new `send.`
For consistency with fetch.
@moigagoo
moigagoo marked this pull request as ready for review July 9, 2026 13:13
@moigagoo
moigagoo requested a review from arnetheduck July 9, 2026 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant