Skip to content

Need Function to return non-html data to client #7

@Uthedris

Description

@Uthedris

I built a small app using Datastar.zig. While I can return a page with the HTTPRequest's html function. I could not use it send a (.css) style sheet successfully.

The html function does send the .css file to the client, the file is not recognized as CSS since the content type is "text/html" not "text/css".

Perhaps a more general function that allows the user to specify the content type would be helpful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions