{"id":41459363,"url":"https://github.com/delicb/kioto","last_synced_at":"2026-01-23T15:48:46.655Z","repository":{"id":57553860,"uuid":"177966733","full_name":"delicb/kioto","owner":"delicb","description":"Compassable middleware based HTTP client","archived":false,"fork":false,"pushed_at":"2019-03-27T10:28:38.000Z","size":44,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-06-20T03:29:10.820Z","etag":null,"topics":["http","http-client","middleware"],"latest_commit_sha":null,"homepage":null,"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/delicb.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}},"created_at":"2019-03-27T10:01:18.000Z","updated_at":"2019-07-17T08:34:39.000Z","dependencies_parsed_at":"2022-08-27T01:40:17.643Z","dependency_job_id":null,"html_url":"https://github.com/delicb/kioto","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/delicb/kioto","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/delicb%2Fkioto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/delicb%2Fkioto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/delicb%2Fkioto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/delicb%2Fkioto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/delicb","download_url":"https://codeload.github.com/delicb/kioto/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/delicb%2Fkioto/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28694922,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T14:15:13.573Z","status":"ssl_error","status_checked_at":"2026-01-23T14:09:05.534Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["http","http-client","middleware"],"created_at":"2026-01-23T15:48:46.566Z","updated_at":"2026-01-23T15:48:46.634Z","avatar_url":"https://github.com/delicb.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kioto\n\nExtensible HTTP client with fluent syntax suitable for both quick use and writing\nclient libraries for large APIs.\n\nMain idea behind `kioto` is to use composable client middlewares to create HTTP\nrequests. It is intended as a way to make HTTP client implementations more readable,\ncode more reusable and easier to use. \n\n# Install\nRun `go get github.com/delicb/kioto` in terminal.\n\n\n# Examples\n```go\npackage kioto_example\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n\n\t\"github.com/delicb/kioto/middlewares/headers\"\n\n\t\"github.com/delicb/kioto/middlewares/errors\"\n)\n\n// HTTPBinResponse will hold response returned from httpbin.org server\ntype HTTPBinResponse struct {\n\tHeaders struct {\n\t\tUserAgent string `json:\"User-Agent\"`\n\t} `json:\"headers\"`\n}\n\nfunc Example() {\n\trespBody := new(HTTPBinResponse)\n\n\t// create new kioto client that will be using http.DefaultClient to send\n\t// actual requests and handle errors via provided middleware.\n\tclient := New(\n\t\tHTTPClient(http.DefaultClient),\n\t\tMiddlewares(errors.Errors()),\n\t)\n\t// set custom header\n\tclient.Use(headers.Set(\"User-Agent\", \"kioto-example\"))\n\n\t// send request\n\tresp, err := client.Request().Get().URL(\"https://httpbin.org/get\").Send()\n\n\t// check errors\n\t// because of errors middleware included in doer, every status codes\n\t// 400+ will be turned into errors.\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\t// check body\n\tif err := resp.JSON(respBody); err != nil {\n\t\tlog.Fatalf(\"Got error response from httpbin: %v\", err)\n\t}\n\tfmt.Println(respBody.Headers.UserAgent)\n\t// output: kioto-example\n}\n\n```\n\n# Contributing\n`kioto` is open to contributions in form of issues, pull requests, discussions, \nnew ideas. \n\n## Maintainers\n* Bojan Delic\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdelicb%2Fkioto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdelicb%2Fkioto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdelicb%2Fkioto/lists"}