Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Commit b54179b

Browse files
Initial Commit
0 parents  commit b54179b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+2101
-0
lines changed

.gitignore

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.DS_Store
2+
/.build
3+
/Packages
4+
/*.xcodeproj
5+
lambda.zip
6+
swift-shared-libs

.swift-version

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
5.0

.swiftformat

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
--disable andOperator,isEmpty,redundantFileprivate,trailingClosures
2+
--allman false
3+
--binarygrouping none
4+
--commas always
5+
--comments indent
6+
--decimalgrouping none
7+
--elseposition same-line
8+
--empty void
9+
--exponentcase lowercase
10+
--exponentgrouping disabled
11+
--fractiongrouping disabled
12+
--header ignore
13+
--hexgrouping none
14+
--hexliteralcase uppercase
15+
--ifdef indent
16+
--indent 4
17+
--indentcase false
18+
--linebreaks lf
19+
--octalgrouping none
20+
--operatorfunc no-space
21+
--patternlet inline
22+
--ranges no-space
23+
--self init-only
24+
--semicolons inline
25+
--stripunusedargs closure-only
26+
--trimwhitespace always
27+
--wraparguments preserve
28+
--wrapcollections preserve

.swiftlint.yml

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
disabled_rules: # rule identifiers to exclude from running
2+
- superfluous_disable_command
3+
- trailing_comma
4+
# - colon
5+
# - comma
6+
# - control_statement
7+
#opt_in_rules: # some rules are only opt-in
8+
# - empty_count
9+
# - missing_docs
10+
# Find all the available rules by running:
11+
# swiftlint rules
12+
#included: # paths to include during linting. `--path` is ignored if present.
13+
# - Source
14+
excluded: # paths to ignore during linting. Takes precedence over `included`.
15+
- Carthage
16+
- Pods
17+
- .build
18+
# configurable rules can be customized from this configuration file
19+
# binary rules can set their severity level
20+
force_cast: warning # implicitly
21+
force_try:
22+
severity: warning # explicitly
23+
# rules that have both warning and error levels, can set just the warning level
24+
# implicitly
25+
line_length: 150
26+
# they can set both implicitly with an array
27+
#type_body_length:
28+
# - 300 # warning
29+
# - 400 # error
30+
# or they can set both explicitly
31+
#file_length:
32+
# warning: 500
33+
# error: 1200
34+
# naming rules can set warnings/errors for min_length and max_length
35+
# additionally they can set excluded names
36+
#type_name#
37+
# min_length: 4 # only warning
38+
# max_length: # warning and error
39+
# warning: 40
40+
# error: 50
41+
# excluded: iPhone # excluded via string
42+
#variable_name:
43+
# min_length: # only min_length
44+
# error: 4 # only error
45+
# excluded: # excluded via string array
46+
# - id
47+
# - URL
48+
# - GlobalAPIKey
49+
reporter: "xcode" # reporter type (xcode, json, csv, checkstyle)

CONTRIBUTING.md

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# Contributing Guidelines
2+
3+
Thank you for your interest in contributing to our project. Whether it's a bug report, new feature, correction, or additional
4+
documentation, we greatly value feedback and contributions from our community.
5+
6+
Please read through this document before submitting any issues or pull requests to ensure we have all the necessary
7+
information to effectively respond to your bug report or contribution.
8+
9+
10+
## Reporting Bugs/Feature Requests
11+
12+
We welcome you to use the GitHub issue tracker to report bugs or suggest features.
13+
14+
When filing an issue, please check [existing open](https://github.com/swift-sprinter/aws-lambda-swift-sprinter-nio-plugin/issues), or [recently closed](https://github.com/swift-sprinter/aws-lambda-swift-sprinter-nio-plugin/issues?utf8=%E2%9C%93&q=is%3Aissue%20is%3Aclosed%20), issues to make sure somebody else hasn't already
15+
reported the issue. Please try to include as much information as you can. Details like these are incredibly useful:
16+
17+
* A reproducible test case or series of steps
18+
* The version of our code being used
19+
* Any modifications you've made relevant to the bug
20+
* Anything unusual about your environment or deployment
21+
22+
23+
## Contributing via Pull Requests
24+
Contributions via pull requests are much appreciated. Before sending us a pull request, please ensure that:
25+
26+
1. You are working against the latest source on the *master* branch.
27+
2. You check existing open, and recently merged, pull requests to make sure someone else hasn't addressed the problem already.
28+
3. You open an issue to discuss any significant work - we would hate for your time to be wasted.
29+
30+
To send us a pull request, please:
31+
32+
1. Fork the repository.
33+
2. Modify the source; please focus on the specific change you are contributing. If you also reformat all the code, it will be hard for us to focus on your change.
34+
3. Ensure local tests pass.
35+
4. Commit to your fork using clear commit messages.
36+
5. Send us a pull request, answering any default questions in the pull request interface.
37+
6. Pay attention to any automated CI failures reported in the pull request, and stay involved in the conversation.
38+
39+
GitHub provides additional document on [forking a repository](https://help.github.com/articles/fork-a-repo/) and
40+
[creating a pull request](https://help.github.com/articles/creating-a-pull-request/).
41+
42+
43+
## Finding contributions to work on
44+
Looking at the existing issues is a great way to find something to contribute on. As our projects, by default, use the default GitHub issue labels ((enhancement/bug/duplicate/help wanted/invalid/question/wontfix), looking at any ['help wanted'](https://github.com/swift-sprinter/aws-lambda-swift-sprinter-nio-plugin/labels/help%20wanted) issues is a great place to start.
45+
46+
47+
## Code of Conduct
48+
This project has adopted the [contributor-covenant.org](https://www.contributor-covenant.org) code of conduct.
49+
50+
51+
## Security issue notifications
52+
If you discover a potential security issue in this projectplease do **not** create a public github issue.
53+
If the security issue is relared to the library send a private email.
54+
If the security issue is related to AWS notify [AWS/Amazon Security](http://aws.amazon.com/security/vulnerability-reporting/).
55+
If the security issue is related to Swift notify [Apple Security](https://support.apple.com/en-ie/HT201220).
56+
57+
58+
## Licensing
59+
60+
See the [LICENSE](https://github.com/swift-sprinter/aws-lambda-swift-sprinter/blob/master/LICENSE.txt) file for our project's licensing. We will ask you to confirm the licensing of your contribution.
61+
62+
We may ask you to sign a [Contributor License Agreement (CLA)](http://en.wikipedia.org/wiki/Contributor_License_Agreement) for larger changes.

Dockerfile

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
FROM swift:latest as builder
2+
3+
RUN apt-get -qq update && apt-get -q -y install \
4+
libssl-dev libicu-dev \

Examples/HTTPSRequest/.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.DS_Store
2+
.build
3+
/Packages
4+
*.xcodeproj

Examples/HTTPSRequest/.swiftlint.yml

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
disabled_rules: # rule identifiers to exclude from running
2+
- superfluous_disable_command
3+
- trailing_comma
4+
# - colon
5+
# - comma
6+
# - control_statement
7+
#opt_in_rules: # some rules are only opt-in
8+
# - empty_count
9+
# - missing_docs
10+
# Find all the available rules by running:
11+
# swiftlint rules
12+
#included: # paths to include during linting. `--path` is ignored if present.
13+
# - Source
14+
excluded: # paths to ignore during linting. Takes precedence over `included`.
15+
- Carthage
16+
- Pods
17+
- .build
18+
# configurable rules can be customized from this configuration file
19+
# binary rules can set their severity level
20+
force_cast: warning # implicitly
21+
force_try:
22+
severity: warning # explicitly
23+
# rules that have both warning and error levels, can set just the warning level
24+
# implicitly
25+
line_length: 150
26+
# they can set both implicitly with an array
27+
#type_body_length:
28+
# - 300 # warning
29+
# - 400 # error
30+
# or they can set both explicitly
31+
#file_length:
32+
# warning: 500
33+
# error: 1200
34+
# naming rules can set warnings/errors for min_length and max_length
35+
# additionally they can set excluded names
36+
#type_name#
37+
# min_length: 4 # only warning
38+
# max_length: # warning and error
39+
# warning: 40
40+
# error: 50
41+
# excluded: iPhone # excluded via string
42+
#variable_name:
43+
# min_length: # only min_length
44+
# error: 4 # only error
45+
# excluded: # excluded via string array
46+
# - id
47+
# - URL
48+
# - GlobalAPIKey
49+
reporter: "xcode" # reporter type (xcode, json, csv, checkstyle)
+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"object": {
3+
"pins": [
4+
{
5+
"package": "async-http-client",
6+
"repositoryURL": "https://github.com/swift-server/async-http-client.git",
7+
"state": {
8+
"branch": null,
9+
"revision": "1b31c5a4e381f0a7119c9a41d814cf8f3183a9f7",
10+
"version": "1.0.0-alpha.3"
11+
}
12+
},
13+
{
14+
"package": "swift-log",
15+
"repositoryURL": "https://github.com/apple/swift-log.git",
16+
"state": {
17+
"branch": null,
18+
"revision": "e8aabbe95db22e064ad42f1a4a9f8982664c70ed",
19+
"version": "1.1.1"
20+
}
21+
},
22+
{
23+
"package": "swift-nio",
24+
"repositoryURL": "https://github.com/apple/swift-nio.git",
25+
"state": {
26+
"branch": null,
27+
"revision": "9201908b54578aa33f1d1826a5a680aca8991843",
28+
"version": "2.8.0"
29+
}
30+
},
31+
{
32+
"package": "swift-nio-ssl",
33+
"repositoryURL": "https://github.com/apple/swift-nio-ssl.git",
34+
"state": {
35+
"branch": null,
36+
"revision": "f5dd7a60ff56f501ff7bf9be753e4b1875bfaf20",
37+
"version": "2.4.0"
38+
}
39+
}
40+
]
41+
},
42+
"version": 1
43+
}

Examples/HTTPSRequest/Package.swift

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// swift-tools-version:5.0
2+
// The swift-tools-version declares the minimum version of Swift required to build this package.
3+
4+
import PackageDescription
5+
6+
let package = Package(
7+
name: "HTTPSRequest",
8+
dependencies: [
9+
// Dependencies declare other packages that this package depends on.
10+
.package(path: "../../../aws-lambda-swift-sprinter-nio-plugin"),
11+
//.package(url: "https://github.com/swift-sprinter/aws-lambda-swift-sprinter-nio-plugin", from: "1.0.0")
12+
.package(url: "https://github.com/apple/swift-log.git", from: "1.0.0"),
13+
],
14+
targets: [
15+
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
16+
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
17+
.target(
18+
name: "HTTPSRequest",
19+
dependencies: ["LambdaSwiftSprinterNioPlugin", "Logging"]
20+
),
21+
.testTarget(
22+
name: "HTTPSRequestTests",
23+
dependencies: ["HTTPSRequest"]
24+
),
25+
]
26+
)

0 commit comments

Comments
 (0)