(Another minor issue is that unions aren’t accessible in @safe code.)
Given that this library already uses std.typecons
, would it be acceptable to use std.sumtype
for the implementation…
It would mean that each request takes up an additional 16 bytes for the request, but I prefer this over the polymorphic class-based approach in Phobos.
Yeah, I don’t think we have to go…
So you're suggesting that the ServerHttpRequest simply provides the full raw URL, and that users would be free to parse it however they like?
Yeah. Sounds like the most flexible approach to me.
As-is, it cannot properly do so for v1.0 and v0.9 requests.
As servers usually reply to such with v1.1 responses anyway, I guess it would be sufficient to rename V1_1
to V1
and document…
The HttpStatus
enum, on the other hand, already contains WebDAV status codes, like
<23c74f82be/source/h
…