-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactoring packages * adding table of contents * Fixed Rocket + Github Integration (#76) * removing content type from MKDatabase extension * Updated README file
- Loading branch information
Showing
37 changed files
with
499 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -166,3 +166,4 @@ Pods | |
*.lcov | ||
Brewfile.lock.json | ||
Package.resolved | ||
gh-md-toc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Reference Documentation | ||
|
||
## Structs | ||
|
||
- [MKAsyncClient](structs/MKAsyncClient.md) | ||
- [MKAsyncRequest](structs/MKAsyncRequest.md) | ||
- [MKAsyncResponse](structs/MKAsyncResponse.md) | ||
|
||
## Classes | ||
|
||
- [HTTPHandler](classes/HTTPHandler.md) | ||
- [MKNIOHTTP1TokenClient](classes/MKNIOHTTP1TokenClient.md) | ||
|
||
## Enums | ||
|
||
- [BindTo](enums/BindTo.md) | ||
|
||
## Extensions | ||
|
||
- [EventLoopFuture](extensions/EventLoopFuture.md) | ||
- [MKDatabase](extensions/MKDatabase.md) | ||
|
||
## Typealiases | ||
|
||
- [HTTPHandler.InboundIn](typealiases/HTTPHandler.InboundIn.md) | ||
- [HTTPHandler.OutboundOut](typealiases/HTTPHandler.OutboundOut.md) | ||
|
||
This file was generated by [SourceDocs](https://github.com/eneko/SourceDocs) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
**CLASS** | ||
|
||
# `HTTPHandler` | ||
|
||
```swift | ||
public final class HTTPHandler: ChannelInboundHandler | ||
``` | ||
|
||
## Methods | ||
### `init(fileIO:htdocsPath:channel:_:)` | ||
|
||
```swift | ||
public init(fileIO: NonBlockingFileIO, htdocsPath: String, channel: Channel, _ onToken: @escaping (String) -> Void) | ||
``` | ||
|
||
### `channelRead(context:data:)` | ||
|
||
```swift | ||
public func channelRead(context: ChannelHandlerContext, data: NIOAny) | ||
``` | ||
|
||
#### Parameters | ||
|
||
| Name | Description | | ||
| ---- | ----------- | | ||
| context | The `ChannelHandlerContext` which this `ChannelHandler` belongs to. | | ||
| data | The data read from the remote peer, wrapped in a `NIOAny`. | | ||
|
||
### `startServer(htdocs:allowHalfClosure:bindTarget:_:)` | ||
|
||
```swift | ||
public static func startServer( | ||
htdocs: String, | ||
allowHalfClosure: Bool, | ||
bindTarget: BindTo, | ||
_ callback: @escaping (EventLoop, String) -> Void | ||
) throws -> Channel | ||
``` |
20 changes: 20 additions & 0 deletions
20
Documentation/Reference/MistKitNIO/classes/MKNIOHTTP1TokenClient.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
**CLASS** | ||
|
||
# `MKNIOHTTP1TokenClient` | ||
|
||
```swift | ||
public class MKNIOHTTP1TokenClient: MKTokenClient | ||
``` | ||
|
||
## Methods | ||
### `init(bindTo:onRedirectURL:)` | ||
|
||
```swift | ||
public init(bindTo: BindTo, onRedirectURL: ((URL) -> Void)? = nil) | ||
``` | ||
|
||
### `request(_:_:)` | ||
|
||
```swift | ||
public func request(_ request: MKAuthenticationResponse?, _ callback: @escaping ((Result<String, Error>) -> Void)) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
**ENUM** | ||
|
||
# `BindTo` | ||
|
||
```swift | ||
public enum BindTo | ||
``` | ||
|
||
## Cases | ||
### `ipAddress(host:port:)` | ||
|
||
```swift | ||
case ipAddress(host: String, port: Int) | ||
``` | ||
|
||
### `unixDomainSocket(path:)` | ||
|
||
```swift | ||
case unixDomainSocket(path: String) | ||
``` | ||
|
||
### `stdio` | ||
|
||
```swift | ||
case stdio | ||
``` |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
Documentation/Reference/MistKitNIO/structs/MKAsyncClient.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
**STRUCT** | ||
|
||
# `MKAsyncClient` | ||
|
||
```swift | ||
public struct MKAsyncClient: MKHttpClient | ||
``` | ||
|
||
## Properties | ||
### `client` | ||
|
||
```swift | ||
public let client: HTTPClient | ||
``` | ||
|
||
## Methods | ||
### `init(client:)` | ||
|
||
```swift | ||
public init(client: HTTPClient) | ||
``` | ||
|
||
### `request(withURL:data:)` | ||
|
||
```swift | ||
public func request(withURL url: URL, data: Data?) -> MKAsyncRequest | ||
``` |
33 changes: 33 additions & 0 deletions
33
Documentation/Reference/MistKitNIO/structs/MKAsyncRequest.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
**STRUCT** | ||
|
||
# `MKAsyncRequest` | ||
|
||
```swift | ||
public struct MKAsyncRequest: MKHttpRequest | ||
``` | ||
|
||
## Properties | ||
### `client` | ||
|
||
```swift | ||
public let client: HTTPClient | ||
``` | ||
|
||
### `url` | ||
|
||
```swift | ||
public let url: URL | ||
``` | ||
|
||
### `data` | ||
|
||
```swift | ||
public let data: Data? | ||
``` | ||
|
||
## Methods | ||
### `execute(_:)` | ||
|
||
```swift | ||
public func execute(_ callback: @escaping ((Result<MKHttpResponse, Error>) -> Void)) | ||
``` |
32 changes: 32 additions & 0 deletions
32
Documentation/Reference/MistKitNIO/structs/MKAsyncResponse.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
**STRUCT** | ||
|
||
# `MKAsyncResponse` | ||
|
||
```swift | ||
public struct MKAsyncResponse: MKHttpResponse | ||
``` | ||
|
||
## Properties | ||
### `response` | ||
|
||
```swift | ||
public let response: HTTPClient.Response | ||
``` | ||
|
||
### `body` | ||
|
||
```swift | ||
public var body: Data? | ||
``` | ||
|
||
### `status` | ||
|
||
```swift | ||
public var status: Int | ||
``` | ||
|
||
### `webAuthenticationToken` | ||
|
||
```swift | ||
public var webAuthenticationToken: String? | ||
``` |
7 changes: 7 additions & 0 deletions
7
Documentation/Reference/MistKitNIO/typealiases/HTTPHandler.InboundIn.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
**TYPEALIAS** | ||
|
||
# `HTTPHandler.InboundIn` | ||
|
||
```swift | ||
public typealias InboundIn = HTTPServerRequestPart | ||
``` |
7 changes: 7 additions & 0 deletions
7
Documentation/Reference/MistKitNIO/typealiases/HTTPHandler.OutboundOut.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
**TYPEALIAS** | ||
|
||
# `HTTPHandler.OutboundOut` | ||
|
||
```swift | ||
public typealias OutboundOut = HTTPServerResponsePart | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.