astra icon indicating copy to clipboard operation
astra copied to clipboard

Serving static HTML etc files

Open David-OConnor opened this issue 2 years ago • 1 comments

Hi! How can I use astra to serve an HTML file? Thank you!

For example, how can I serve the rust docs using Astra? Thank you!

David-OConnor avatar Mar 12 '24 18:03 David-OConnor

Sorry for the late reply, this issue slipped from my notifications.

You can use Body::wrap_reader to stream an HTML file response.

ibraheemdev avatar Nov 06 '24 09:11 ibraheemdev