I don't think there's a multipart-writing library yet, and it would be a
great thing to have.

I've written little multipart-writing functions for a small proxy server
built on `http-sendrecv/url` and for sending email using `net/sendmail`
with html and text/plain alternatives. I'm happy to share code if it would
be helpful, but nothing I've written is especially robust—for example, I
just use a boundary that I know won't appear in legitimate input in my
cases—which is why I haven't posted it publicly yet.

One thought I've had about making a library is that it would be nice if the
writing API corresponded in some sensible way to the API from `net/mime
<https://docs.racket-lang.org/net/mime.html>` (which only handles parsing).

-Philip


On Tue, Jan 29, 2019 at 4:17 AM Christopher Lemmer Webber <
cweb...@dustycloud.org> wrote:

> I'm looking to do multipart HTTP requests in Racket, though it looks
> like there's no support at the moment.
>
> I thought I might add a utility using the net/http-client library,
> starting with making an adjusted http-conn-send! function.  However, the
> http-conn-(host/port/etc) struct accessors aren't made available, so it
> appears I can't build a utility that uses the same http-conn struct.
>
> Any thoughts on how I should move forward?  Has anyone else written a
> multipart library I don't know about, for instance?
>
>  - cwebb
>
> --
> You received this message because you are subscribed to the Google Groups
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to racket-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to