[swift-server-dev] HTTP Parser
Chris Bailey
BAILEYC at uk.ibm.com
Sun Nov 6 03:31:04 CST 2016
> I think the right solution in general is to use C quite aggressively at
first, but wall it off behind Swift facades. Later, we can revisit our C
dependencies and replace them with Swift as we feel it's appropriate.
Ideally, we'd use protocols here so the replacement is as simple as
possible.
+1
Chris
From: Brent Royal-Gordon via swift-server-dev
<swift-server-dev at swift.org>
To: Logan Wright <logan at qutheory.io>, Logan Wright via
swift-server-dev <swift-server-dev at swift.org>
Date: 04/11/2016 20:34
Subject: Re: [swift-server-dev] HTTP Parser
Sent by: swift-server-dev-bounces at swift.org
> On Nov 4, 2016, at 12:18 PM, Logan Wright via swift-server-dev
<swift-server-dev at swift.org> wrote:
>
> Helge, if I had my way, we wouldn't touch C in any way whatsoever for
any of the server side libraries except as an absolute last resort, but
this life is full of compromise, and I'm trying to be amicable to come up
with solutions that we can agree on.
>
> For HTTP2 as well, I'd like plans to eventually move to pure swift
native implementations rethought for the language.
I think the right solution in general is to use C quite aggressively at
first, but wall it off behind Swift facades. Later, we can revisit our C
dependencies and replace them with Swift as we feel it's appropriate.
Ideally, we'd use protocols here so the replacement is as simple as
possible.
Here's my question: Can we have our HTTP parser use Foundation's existing
`URLRequest` and `HTTPURLResponse` types as Swift-facing outputs and
inputs? Or are these types too-tightly designed for an HTTP client's
needs, and we need different types for an HTTP server? Or are there minor
modifications the Foundation team is willing to make in Apple Foundation
to extend them for our use case? If we *can* use these types on both
client and server, I think that would be ideal—it would allow people to
reuse their knowledge and potentially a little bit of code.
--
Brent Royal-Gordon
Architechies
_______________________________________________
swift-server-dev mailing list
swift-server-dev at swift.org
https://lists.swift.org/mailman/listinfo/swift-server-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-server-dev/attachments/20161106/44186b19/attachment.html>
More information about the swift-server-dev
mailing list