{"id":13339259,"url":"https://github.com/Narazaka/ShioriSharp","last_synced_at":"2025-03-11T12:31:44.953Z","repository":{"id":70967785,"uuid":"324618562","full_name":"Narazaka/ShioriSharp","owner":"Narazaka","description":null,"archived":false,"fork":false,"pushed_at":"2020-12-30T08:49:37.000Z","size":108,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-10T18:53:21.939Z","etag":null,"topics":["ghost","shiori","shiori-protocol-parser","ukagaka"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"zlib","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Narazaka.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":"2020-12-26T19:07:20.000Z","updated_at":"2023-05-19T14:57:34.000Z","dependencies_parsed_at":"2023-03-11T09:35:14.246Z","dependency_job_id":null,"html_url":"https://github.com/Narazaka/ShioriSharp","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Narazaka%2FShioriSharp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Narazaka%2FShioriSharp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Narazaka%2FShioriSharp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Narazaka%2FShioriSharp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Narazaka","download_url":"https://codeload.github.com/Narazaka/ShioriSharp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243034990,"owners_count":20225441,"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":["ghost","shiori","shiori-protocol-parser","ukagaka"],"created_at":"2024-07-29T19:19:54.428Z","updated_at":"2025-03-11T12:31:44.939Z","avatar_url":"https://github.com/Narazaka.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ShioriSharp\n\n![build](https://github.com/Narazaka/ShioriSharp/workflows/build/badge.svg)\n![Nuget](https://img.shields.io/nuget/v/ShioriSharp)\n\nSHIORI/2.x,3.x SAORI/1.0 Protocol Parser / Container\n\n\u003cimg src=\"https://raw.githubusercontent.com/Narazaka/ShioriSharp/master/ShioriSharp.png\" width=\"128\" height=\"128\"\u003e\n\n## Install\n\navailable on [NuGet](https://www.nuget.org/packages/ShioriSharp/)\n\n## Usage\n\n```csharp\nusing Xunit;\nusing ShioriSharp.Message;\nusing ShioriSharp.Parser;\n\nnamespace Demo {\n    public class Demo {\n        const string CRLF = \"\\xd\\xa\";\n\n        [Fact]\n        public void ParseSHIORI() {\n            var requestStr = $\"GET SHIORI/3.0{CRLF}Sender: さくら{CRLF}{CRLF}\";\n            var request = Parser.ParseRequest(requestStr);\n            Assert.True(request.Valid);\n            Assert.True(request.Method == \"GET\");\n            Assert.True(request.Method == Method.Enum.GET);\n            Assert.True(request.Version == 3.0);\n            Assert.True(request.Headers.Sender == \"さくら\");\n            Assert.Equal(requestStr, request.ToString());\n        }\n\n        [Fact]\n        public void BuildSHIORI() {\n            var response = new Response(200) { Headers = { Sender = \"まゆら\", Value = @\"\\hあー。\\e\" } };\n            Assert.Equal(response.ToString(), $\"SHIORI/3.0 200 OK{CRLF}Sender: まゆら{CRLF}Value: \\\\hあー。\\\\e{CRLF}{CRLF}\");\n            Assert.Equal(\"SHIORI/3.0 200 OK\", Parser.ParseResponse(response.ToString()).StatusLine.ToString());\n        }\n\n        [Fact]\n        public void BuildSAORI() {\n            var request = new Request(\"EXECUTE\", \"SAORI\") { Headers = { { \"Argument0\", \"Foo\" } } };\n            Assert.Equal(\"Foo\", request.Headers.Get(\"Argument0\"));\n        }\n    }\n}\n```\n\n## License\n\n[Zlib License](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNarazaka%2FShioriSharp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FNarazaka%2FShioriSharp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNarazaka%2FShioriSharp/lists"}