[swift-server-dev] Prototype of the discussed HTTP API Spec

Helge Heß me at helgehess.eu
Thu Jun 1 09:33:36 CDT 2017


On 26 May 2017, at 23:22, Helge Heß <me at helgehess.eu> wrote:
>> func writeBody(data: DispatchData, completion: @escaping (Result<POSIXError, ()>) -> Void)
> 
> Do we really want to expose POSIXError’s? I’d say have an own error type for HTTP level errors and maybe something like this:
> 
>  enum HTTPError {
>    case connectionClosed(cause: POSIXError?)
>    ...
>  }

Also, POSIXError is not an actual thing a user can create, right? It is just a namespace. Should be POSIXErrorCode?

hh

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <https://lists.swift.org/pipermail/swift-server-dev/attachments/20170601/fc15d250/attachment.sig>


More information about the swift-server-dev mailing list