{"id":17540047,"url":"https://github.com/yockow/swiftcgiresponder","last_synced_at":"2026-02-16T08:08:34.613Z","repository":{"id":42394633,"uuid":"105433152","full_name":"YOCKOW/SwiftCGIResponder","owner":"YOCKOW","description":"I want to write CGI programs in Swift...","archived":false,"fork":false,"pushed_at":"2026-01-11T08:56:24.000Z","size":1064,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-11T14:27:05.756Z","etag":null,"topics":["cgi","swift"],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/YOCKOW.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2017-10-01T09:58:15.000Z","updated_at":"2026-01-11T08:55:55.000Z","dependencies_parsed_at":"2024-05-02T04:27:46.619Z","dependency_job_id":"a1c1ed58-b56d-49f2-8733-6fd0b37dd2ee","html_url":"https://github.com/YOCKOW/SwiftCGIResponder","commit_stats":null,"previous_names":[],"tags_count":62,"template":false,"template_full_name":null,"purl":"pkg:github/YOCKOW/SwiftCGIResponder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YOCKOW%2FSwiftCGIResponder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YOCKOW%2FSwiftCGIResponder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YOCKOW%2FSwiftCGIResponder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YOCKOW%2FSwiftCGIResponder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/YOCKOW","download_url":"https://codeload.github.com/YOCKOW/SwiftCGIResponder/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YOCKOW%2FSwiftCGIResponder/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29503235,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T08:07:58.651Z","status":"ssl_error","status_checked_at":"2026-02-16T08:07:56.823Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cgi","swift"],"created_at":"2024-10-20T22:07:55.876Z","updated_at":"2026-02-16T08:08:34.601Z","avatar_url":"https://github.com/YOCKOW.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# What is `SwiftCGIResponder`?\n`SwiftCGIResponder` will provide miscellaneous functions you may use when you write CGI programs in Swift.  \nIt's an experimental library under development, and useless as of now.\n\n# Requirements\n* Swift 5, 6\n  * CoreFoundation\n  * Foundation\n* macOS \u003e= 10.15 or Linux\n* HTTP server software (e.g. Apache or similar software)\n\n## Dependencies\n\n\u003c!-- SWIFT PACKAGE DEPENDENCIES MERMAID START --\u003e\n```mermaid\n---\ntitle: CGIResponder Dependencies\n---\nflowchart TD\n  swiftbootstring([\"Bootstring\u003cbr\u003e@1.2.0\"])\n  swiftcgiresponder[\"CGIResponder\"]\n  swiftnetworkgear([\"NetworkGear\u003cbr\u003e@0.19.7\"])\n  swiftpublicsuffix([\"PublicSuffix\u003cbr\u003e@2.4.3\"])\n  swiftranges([\"Ranges\u003cbr\u003e@3.2.2\"])\n  swiftstringcomposition([\"StringComposition\u003cbr\u003e@2.2.0\"])\n  swifttemporaryfile([\"TemporaryFile\u003cbr\u003e@4.2.1\"])\n  swifttimespecification([\"TimeSpecification\u003cbr\u003e@3.4.0\"])\n  swiftunicodesupplement([\"UnicodeSupplement\u003cbr\u003e@1.7.0\"])\n  swiftxhtml([\"XHTML\u003cbr\u003e@2.8.0\"])\n  yswiftextensions([\"yExtensions\u003cbr\u003e@1.12.1\"])\n\n  click swiftbootstring href \"https://github.com/YOCKOW/SwiftBootstring.git\"\n  click swiftnetworkgear href \"https://github.com/YOCKOW/SwiftNetworkGear.git\"\n  click swiftpublicsuffix href \"https://github.com/YOCKOW/SwiftPublicSuffix.git\"\n  click swiftranges href \"https://github.com/YOCKOW/SwiftRanges.git\"\n  click swiftstringcomposition href \"https://github.com/YOCKOW/SwiftStringComposition.git\"\n  click swifttemporaryfile href \"https://github.com/YOCKOW/SwiftTemporaryFile.git\"\n  click swifttimespecification href \"https://github.com/YOCKOW/SwiftTimeSpecification.git\"\n  click swiftunicodesupplement href \"https://github.com/YOCKOW/SwiftUnicodeSupplement.git\"\n  click swiftxhtml href \"https://github.com/YOCKOW/SwiftXHTML.git\"\n  click yswiftextensions href \"https://github.com/YOCKOW/ySwiftExtensions.git\"\n\n  swiftcgiresponder --\u003e swiftnetworkgear\n  swiftcgiresponder --\u003e swifttemporaryfile\n  swiftcgiresponder ----\u003e swifttimespecification\n  swiftcgiresponder --\u003e swiftxhtml\n  swiftcgiresponder --\u003e yswiftextensions\n  swiftnetworkgear ----\u003e swiftbootstring\n  swiftnetworkgear ----\u003e swiftpublicsuffix\n  swiftnetworkgear ----\u003e swiftranges\n  swiftnetworkgear --\u003e swifttemporaryfile\n  swiftnetworkgear --\u003e swiftunicodesupplement\n  swiftnetworkgear --\u003e yswiftextensions\n  swiftstringcomposition --\u003e yswiftextensions\n  swifttemporaryfile ----\u003e swiftranges\n  swifttemporaryfile --\u003e yswiftextensions\n  swiftunicodesupplement ----\u003e swiftranges\n  swiftxhtml --\u003e swiftnetworkgear\n  swiftxhtml ----\u003e swiftranges\n  swiftxhtml --\u003e swiftstringcomposition\n  swiftxhtml --\u003e swiftunicodesupplement\n  swiftxhtml --\u003e yswiftextensions\n  yswiftextensions ----\u003e swiftranges\n  yswiftextensions --\u003e swiftunicodesupplement\n\n\n```\n\u003c!-- SWIFT PACKAGE DEPENDENCIES MERMAID END --\u003e\n\n\n# Usage\n\n```Swift\nimport CGIResponder\n\nvar responder = CGIResponder()\nresponder.status = .ok\nresponder.contentType = ContentType(pathExtension:.txt, parameters:[\"charset\":\"UTF-8\"])!\nresponder.content = .string(\"Hello, World!\\n\", encoding:.utf8)\ntry! responder.respond()\n\n// -- Output --\n// Status: 200 OK\n// Content-Type: text/plain; charset=UTF-8\n//\n// Hello, World!\n//\n```\n\nYou may see other samples in [Samples Directory](./Samples).\n\n# How to install\n\nYou can use [Swift Package Manager](https://github.com/apple/swift-package-manager) easily to import `CGIResponder` to your project.\n\n## Example of `Package.swift`\n\n```Swift\n// swift-tools-version:5.1\n// The swift-tools-version declares the minimum version of Swift required to build this package.\n\nimport PackageDescription\n\nlet package = Package(\n  name: \"MyCGI\",\n  products: [\n    // Products define the executables and libraries produced by a package, and make them visible to other packages.\n    .executable(name: \"cgi1\", targets: [\"CGI1\"]),\n    .executable(name: \"cgi2\", targets: [\"CGI2\"]),\n    .library(name: \"CGIManager\", type:.dynamic, targets: [\"CGIManager\"]),\n  ],\n  dependencies: [\n    // Dependencies declare other packages that this package depends on.\n    .package(url:\"https://github.com/YOCKOW/SwiftNetworkGear.git\", .branch(\"master\")),\n    .package(url:\"https://github.com/YOCKOW/SwiftCGIResponder.git\", .branch(\"master\")),\n  ],\n  targets: [\n    // Targets are the basic building blocks of a package. A target can define a module or a test suite.\n    // Targets can depend on other targets in this package, and on products in packages which this package depends on.\n    .target(name: \"CGI1\", dependencies:[\"SwiftCGIResponder\", \"SwiftNetworkGear\"]),\n    .target(name: \"CGI2\", dependencies:[\"SwiftCGIResponder\", \"SwiftNetworkGear\"]),\n    .target(name: \"CGIManager\", dependencies:[\"SwiftCGIResponder\"]),\n    .testTarget(name: \"CGIManagerTests\", dependencies: [\"CGIManager\"]),\n  ]\n)\n```\n\n\n# License\nMIT License.  \nSee \"LICENSE.txt\" for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyockow%2Fswiftcgiresponder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyockow%2Fswiftcgiresponder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyockow%2Fswiftcgiresponder/lists"}