101 Commits

Author SHA1 Message Date
Ian Partridge 07cd40ce8c Update README.md 2018-09-24 11:14:17 +01:00
Carl Brown 8a5668cc19 Merge pull request #109 from gtaban/tlsRebased
TLS Integration into HTTP
2018-01-10 15:14:12 -06:00
Gelareh Taban 21cf431cf1 Remove extra logging. 2018-01-10 15:06:45 -06:00
Gelareh Taban 6b8cd8b092 Remove code that crept back because of the rebase. 2018-01-10 14:26:45 -06:00
Gelareh Taban 7bf242651c Update dependency on swift-server/TLSService instead of gtaban/TLSService. 2018-01-10 11:54:51 -06:00
Carl Brown 30344ad3f0 Move TLS config to the HTTPServer.Options object 2018-01-08 15:29:21 -06:00
Gelareh Taban 9b64bc21d8 TLS integration with tests - runs OK on macOS and OK on Linux 2018-01-08 12:47:44 -06:00
gtaban b5001e49c6 Merge pull request #108 from carlbrown/forPRforTSAN
Add Semaphores to fix TSAN warnings
2018-01-08 11:33:21 -06:00
Carl Brown 3739ce6037 Remove TODO comment for thing I'd already done. 2018-01-08 11:07:29 -06:00
Carl Brown 36adb9f32f Remove Logging variable no longer used and fixed typo
Thanks @gtaban for the feedback.
2018-01-08 10:57:54 -06:00
Carl Brown 66c6b6a06d Semaphores to fix TSAN warnings
Semaphores to track if abort() has been called

Semaphores to track if cleanup() has been called and only let it get called once
2018-01-03 14:06:30 -06:00
Carl Brown b576f2e860 Merge pull request #107 from ZeeZide/bug/http-parser-credits
Add http-parser credits
2017-12-08 14:39:31 -06:00
Helge Hess 3af439047d Apply original http-parser 2.7.1 drop
The internal one only changes formatting, but for maintaining
the drop, this should be an exact copy, IMO :-)
2017-12-07 21:37:45 +01:00
Helge Hess 933ecc536b Use 2.7.1 version of LICENSE
They changed it in master, see 89279ab for why. For the
2.7.1 drop, we should stick to the associated one.
2017-12-07 21:34:45 +01:00
Helge Hess dd00ed6e3b Add HTTPParser license and credits
... omitting them may be legal or not, but it isn't nice
in any case ;-)
2017-12-07 21:25:09 +01:00
Carl Brown 31d066a0e9 Merge pull request #103 from anayini/update-readme
Add note in README.md about generating .xcodeproj
2017-11-30 11:42:58 -06:00
Arjun Nayini e002bc58eb PR Feedback 2017-11-22 22:01:34 -08:00
Arjun Nayini d50eeecf76 Add note in README.md about generating .xcodeproj 2017-11-13 22:03:51 -08:00
Carl Brown 4eab465956 Merge pull request #101 from GeorgeLyon/develop
Any informational header (1XX) should be allowed to be written prior …
2017-11-13 09:49:57 -06:00
George 92dcc60699 Any informational header (1XX) should be allowed to be written prior to actual response headers.
Previously, this honor was only bestowed upon status 100 "Continue".
2017-11-12 12:45:59 -08:00
Carl Brown 825b680c64 Merge pull request #81 from gtaban/convertOptions
Move HTTPServer options from Start into init
2017-11-10 17:29:08 -06:00
Gelareh Taban 2e987e181c remove arguments from HTTPServer start function and put it in an option class and pass in init. 2017-11-10 16:50:33 -06:00
Carl Brown 397c5fb7a4 Merge pull request #85 from ZeeZide/feature/no-http-serving
Drop HTTPServing
2017-11-10 15:53:31 -06:00
Carl Brown b6211a2894 Merge branch 'develop' into feature/no-http-serving 2017-11-10 15:25:22 -06:00
Carl Brown 4d2c2b55f7 Merge branch 'develop' into feature/no-http-serving 2017-11-10 15:23:14 -06:00
Carl Brown b54c7b40ad Merge pull request #95 from gtaban/splitServerTests
Divide up the Server unit tests and end-to-end tests
2017-11-10 14:32:36 -06:00
Carl Brown 9dd0946bff Merge pull request #94 from gtaban/PackageResolved
git should ignore Package.resolved
2017-11-10 14:28:58 -06:00
Gelareh Taban a5a4da0375 Divide up the Server unit tests and end to end tests. 2017-11-10 10:52:02 -06:00
Gelareh Taban 6ad4650c17 git should ignore Package.resolved 2017-11-10 10:34:19 -06:00
Arjun Nayini 2c4336880d [Code Style] Some code style changes (#92)
* [Code Style] Some code style changes

Minor changes to make some code Swiftier

* Fixes for PR feedback
2017-11-09 19:58:39 +00:00
Chris Amanse b624e39530 Fix readBuffer leak when do block catches an error (#77) 2017-11-09 19:57:34 +00:00
Carl Brown 53e1e38e1b server.stop shouldn't have been left commented out in these two tests (#75) 2017-11-07 12:24:41 -08:00
Carl Brown 630bd0bfc9 Handle blocking failure (#62) 2017-11-07 12:18:19 -08:00
Arjun Nayini 728b66d569 Lint and Clean up code (#84) 2017-11-07 11:34:33 -08:00
Helge Hess 88ab09d047 Drop HTTPServing
The API is concrete, this protocol serves no purpose.
2017-11-05 23:51:45 +01:00
Shane Vitarana 473177815d Fixed typo in comments (#80) 2017-10-30 10:10:21 +00:00
Carl Brown fa11340bc1 Merge pull request #79 from ZeeZide/develop
Typo: it is mkcol, not mkol
2017-10-26 09:45:03 -05:00
Helge Hess 34cd525151 Typo: it is mkcol, not mkol
As another option we could write an RFC to introduce

  MKOL - Make Outline

Not quite sure what that would do, though.
2017-10-23 14:57:41 +02:00
Carl Brown d9dbb40531 Sockets aren't idle if response not completed (#63) 2017-10-07 18:18:11 +01:00
Chris Amanse 1994157441 Test hashValue and description of HTTPVersion (#71) 2017-10-07 17:54:49 +01:00
Carl Brown ec6087c2a1 dealloc (#68) 2017-10-07 13:19:06 +01:00
nixzhu fb6df9b933 Better code style (#67)
* Indent return

* Auto infer URLSessionConfiguration.default

* Better define of `testString`
2017-10-07 13:17:09 +01:00
Carl Brown 5a00cde492 Merge pull request #64 from ShaneQi/new_runloop_api_in_readme
Replaced `CFRunLoopRun()` with `RunLoop.current.run()` in README examples.
2017-10-04 10:18:22 -05:00
Shane Qi fffb8dd883 Replaced CFRunLoopRun() with RunLoop.current.run() in README examples.
Linux's Foundation donesn't have `CFRunLoopRun()` API. It's equivalent is `RunLoop.current.run()`.
Since `RunLoop.current.run()` is also available on macOS, so we can replace `CFRunLoopRun()` with `RunLoop.current.run()`, so that people won't be confused when they copy & past example but not working on linux.
2017-10-04 09:19:00 -05:00
Ian Partridge 234551eeef Readme: request feedback (#61) 2017-10-03 13:32:33 +01:00
Chris Bailey f8516cc725 TestResponseResolver logic match HTTPStreamingParser (#58) 0.1.0 2017-10-02 16:11:55 +01:00
Chris Bailey 811940bb05 Update Jazzy docs with handler example and other minor improvements (#59) 2017-10-02 11:00:25 +01:00
Aaron Liberatore 3aa8b03c06 Keep alive override (#57)
* Overridable keep alive timeout

* removes whitespace
2017-09-28 22:01:29 +01:00
Carl Brown 2ab754e00f Swift 4 support (#56) 2017-09-26 17:05:12 +01:00
Carl Brown defd4c7005 Push completion block to queueSocketWrite (#55)
* Push completion block to queueSocketWrite

* Fix test assert

I had put this fix in the PR for Swift 4 instead of the PR for this when I split them up. Sorry.
2017-09-26 17:04:52 +01:00