<div dir="ltr">Helge.<div><br></div><div>I agree with you about the headers and their types. This doesn&#39;t mean there&#39;s a double standard. We can still have those headers be strong types. Only they would be computed properties like so.</div><div><br></div><div><a href="https://github.com/Zewo/Zewo/blob/master/Sources/HTTP/Message/Message.swift#L42-L50">https://github.com/Zewo/Zewo/blob/master/Sources/HTTP/Message/Message.swift#L42-L50</a><br></div><div><br></div><div>But again, headers are not the topic of the current discussion, so let&#39;s keep focus! ðŸ˜Š</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 14 June 2017 at 11:55, Helge Heß via swift-server-dev <span dir="ltr">&lt;<a href="mailto:swift-server-dev@swift.org" target="_blank">swift-server-dev@swift.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 14 Jun 2017, at 16:50, Samuel Kallner &lt;<a href="mailto:KALLNER@il.ibm.com">KALLNER@il.ibm.com</a>&gt; wrote:<br>
&gt; HTTPVersion should not be represented as a String as it doesn&#39;t have String semantics. It has the semantics of a pair of numbers (i.e. 2.12 &gt; 2.2)<br>
<br>
Content-Length should not be represented as a String as it doesn’t have String semantics. It has the semantic of a single number.<br>
<br>
Content-Type should not be represented as a String as it doesn’t have String semantics. It has the semantic of a MIME type.<br>
<br>
etc.<br>
<br>
My comment was about double standards. If we represent headers as String, method and other stuff can be strings too. As mentioned I’d actually prefer specific types for known headers (not just for typing but also for performance, necessary in practice or not :-) ).<br>
<br>
hh<br>
<br>
<br>______________________________<wbr>_________________<br>
swift-server-dev mailing list<br>
<a href="mailto:swift-server-dev@swift.org">swift-server-dev@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-server-dev" rel="noreferrer" target="_blank">https://lists.swift.org/<wbr>mailman/listinfo/swift-server-<wbr>dev</a><br>
<br></blockquote></div><br></div>