Skip to content
This repository was archived by the owner on Nov 23, 2021. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 88ab09d

Browse files
committedNov 5, 2017
Drop HTTPServing
The API is concrete, this protocol serves no purpose.
1 parent 4731778 commit 88ab09d

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed
 

‎Sources/HTTP/HTTPServer.swift

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,10 @@
66
// See http://swift.org/LICENSE.txt for license information
77
//
88

9-
/// Definition of an HTTP server.
10-
public protocol HTTPServing : class {
11-
12-
/// Start the HTTP server on the given `port`, using `handler` to process incoming requests
13-
func start(port: Int, handler: @escaping HTTPRequestHandler) throws
14-
15-
/// Stop the server
16-
func stop()
17-
18-
/// The port the server is listening on
19-
var port: Int { get }
20-
21-
/// The number of current connections
22-
var connectionCount: Int { get }
23-
}
24-
259
/// A basic HTTP server. Currently this is implemented using the PoCSocket
2610
/// abstraction, but the intention is to remove this dependency and reimplement
2711
/// the class using transport APIs provided by the Server APIs working group.
28-
public class HTTPServer: HTTPServing {
12+
public class HTTPServer {
2913
private let server = PoCSocketSimpleServer()
3014

3115
/// Create an instance of the server. This needs to be followed with a call to `start(port:handler:)`

0 commit comments

Comments
 (0)
This repository has been archived.