24 Aug
2022
24 Aug
'22
9:49 a.m.
Le 2022-08-24 10:03, Andrzej Krzemienski via Boost a écrit :
śr., 24 sie 2022 o 01:37 Vinnie Falco via Boost
napisał(a):
This convinces me even further that I might want a type like http_url with a tighter invariant: 1. The port is an optional int 2. The query part doesn't have duplicate keys.
Unless i'm mistaken, it is perfectly legal to have duplicate keys in the query part, even for the http/https scheme. And IIRC that's been (and probably still is) used by several web frameworks to represent arrays in GET request. So that would not fit for an http_url invariant. Regards, Julien