Skip to content

Commit

Permalink
Initial update.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdpopov-keyvariable committed Jan 20, 2021
1 parent f050437 commit 717d1c3
Show file tree
Hide file tree
Showing 8 changed files with 694 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.DS_Store
/.build
/Packages
/*.xcodeproj
xcuserdata/
.swiftpm/xcode
Ignored/
43 changes: 43 additions & 0 deletions Package.resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"object": {
"pins": [
{
"package": "kvKit-Swift",
"repositoryURL": "https://github.com/keyvariable/kvKit-Swift.git",
"state": {
"branch": null,
"revision": "f0c4253c7214ce090feb6adf6247fe5b918b70e0",
"version": "1.0.0"
}
},
{
"package": "swift-nio",
"repositoryURL": "https://github.com/apple/swift-nio.git",
"state": {
"branch": null,
"revision": "43931b7a7daf8120a487601530c8bc03ce711992",
"version": "2.25.1"
}
},
{
"package": "swift-nio-http2",
"repositoryURL": "https://github.com/apple/swift-nio-http2.git",
"state": {
"branch": null,
"revision": "d4060ac4d056a48d946298f04968f6f6080cc618",
"version": "1.16.2"
}
},
{
"package": "swift-nio-ssl",
"repositoryURL": "https://github.com/apple/swift-nio-ssl.git",
"state": {
"branch": null,
"revision": "62bf5083df970e67c886210fa5b857eacf044b7c",
"version": "2.10.2"
}
}
]
},
"version": 1
}
42 changes: 42 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
// swift-tools-version:5.2
//
//===----------------------------------------------------------------------===//
//
// Copyright (c) 2021 Svyatoslav Popov.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
// an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
// specific language governing permissions and limitations under the License.
//
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//

import PackageDescription

let package = Package(
name: "kvHttp2Kit-Swift",
products: [
.library(name: "kvHttp2Kit", targets: [ "kvHttp2Kit" ]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-nio.git", from: "2.13.0"),
.package(url: "https://github.com/apple/swift-nio-http2.git", from: "1.9.0"),
.package(url: "https://github.com/apple/swift-nio-ssl.git", from: "2.6.0"),
.package(url: "https://github.com/keyvariable/kvKit-Swift.git", from: "1.0.0"),
],
targets: [
.target(name: "kvHttp2Kit",
dependencies: [ .product(name: "kvKit", package: "kvKit-Swift"),
.product(name: "NIO", package: "swift-nio"),
.product(name: "NIOHTTP1", package: "swift-nio"),
.product(name: "NIOHTTP2", package: "swift-nio-http2"),
.product(name: "NIOSSL", package: "swift-nio-ssl") ]),
.testTarget(name: "kvHttp2KitTests", dependencies: [ "kvHttp2Kit" ]),
]
)
42 changes: 42 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# kvHttp2Kit-Swift

![Swift 5.2](https://img.shields.io/badge/swift-5.2-green.svg)
![Linux](https://img.shields.io/badge/os-linux-green.svg)
![macOS](https://img.shields.io/badge/os-macOS-green.svg)

A collection of auxiliaries for HTTP and HTTP/2 on Swift. It's based on [SwiftNIO](https://github.com/apple/swift-nio).


## Supported Platforms

The same as [SwiftNIO](https://github.com/apple/swift-nio).


## Getting Started

### Swift Tools 5.2+

#### Package Dependencies:

```swift
dependencies: [
.package(url: "https://github.com/keyvariable/kvHttp2Kit-Swift", from: "0.1.0"),
]
```

#### Target Dependencies:

```swift
dependencies: [
.product(name: "kvHttp2Kit", package: "kvHttp2Kit-Swift"),
]
```

### Xcode

Documentation: [Adding Package Dependencies to Your App](https://developer.apple.com/documentation/xcode/adding_package_dependencies_to_your_app).


## Authors

- Svyatoslav Popov ([@sdpopov-keyvariable](https://github.com/sdpopov-keyvariable), [[email protected]](mailto:[email protected])).
Loading

0 comments on commit 717d1c3

Please sign in to comment.