{"id":22620285,"url":"https://github.com/qba73/http","last_synced_at":"2025-03-29T02:13:00.661Z","repository":{"id":62867540,"uuid":"562196674","full_name":"qba73/http","owner":"qba73","description":"HTTP Server accepting cert/key as byte slices","archived":false,"fork":false,"pushed_at":"2023-05-29T18:05:11.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-03T12:16:31.742Z","etag":null,"topics":["go","go-library","http-server","tls"],"latest_commit_sha":null,"homepage":"","language":"Go","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/qba73.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2022-11-05T15:49:33.000Z","updated_at":"2022-11-05T17:58:22.000Z","dependencies_parsed_at":"2024-06-20T05:07:29.010Z","dependency_job_id":null,"html_url":"https://github.com/qba73/http","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qba73%2Fhttp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qba73%2Fhttp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qba73%2Fhttp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qba73%2Fhttp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qba73","download_url":"https://codeload.github.com/qba73/http/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246126720,"owners_count":20727594,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["go","go-library","http-server","tls"],"created_at":"2024-12-08T22:13:01.419Z","updated_at":"2025-03-29T02:13:00.641Z","avatar_url":"https://github.com/qba73.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Go Reference](https://pkg.go.dev/badge/github.com/qba73/http.svg)](https://pkg.go.dev/github.com/qba73/http)\n[![Go](https://github.com/qba73/http/actions/workflows/go.yml/badge.svg)](https://github.com/qba73/http/actions/workflows/go.yml)\n![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/qba73/http?logo=go)\n[![Go Report Card](https://goreportcard.com/badge/github.com/qba73/http)](https://goreportcard.com/report/github.com/qba73/http)\n\n# http\n\n```http``` is a Go library for running the HTTP Server configured to use TLS.\n\n## Using the Go library\n\nImport the library using:\n```go\nimport httpb \"github.com/qba73/http\"\n```\n\nStart a default http server with TLS:\n```go\nerr := httpb.ListenAndServeTLS(\":443\", cert, key, handler)\nif err != nil {\n    log.Fatalln(err)\n}\n```\n\nThe function signature is the key difference compared with the same func from the http standard library. The function takes a cert and a key which are slices of bytes (```[]byte```), not paths to files located in the filesystem!\n\nUsing ```[]byte``` types instead of paths allows passing a cert and a key directly to the function without creating a temporary directory to store the content of the cert and key in files in the filesystem.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqba73%2Fhttp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqba73%2Fhttp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqba73%2Fhttp/lists"}