Earl:从RFC 6570模板构建URL

时间:2021-05-14 09:21:05
【文件属性】:
文件名称:Earl:从RFC 6570模板构建URL
文件大小:1.63MB
文件格式:ZIP
更新时间:2021-05-14 09:21:05
C# 伯爵 从RFC 6570模板构建URL。 使用NuGet下载: 概述 Earl允许您通过替换占位符的值来定义URI模板并构建复杂的URL。 Earl支持基于RFC 6570的4级URI模板。这使得构建复杂的URL变得容易得多,尤其是那些包含嵌入式ID,查询字符串,路径段( / ),片段( # )和其他URI奇数的URL。 例如,这是一个非常复杂的URI,否则很难构建: UriTemplate template = new UriTemplate("http://localhost{+port}/api{/version}/customers{?q,pagenum,pagesize}{#section}"); string uri = template.Expand(new { port = ":8080", version = "v2", q = "rest",
【文件预览】:
Earl-master
----.gitignore(1KB)
----Earl()
--------Earl.snk(596B)
--------Reflection()
--------ConstantGenerator.cs(368B)
--------PlaceholderGenerator.cs(4KB)
--------ISectionGenerator.cs(134B)
--------UriTemplate.cs(5KB)
--------Variable.cs(627B)
--------Properties()
--------Earl.csproj(2KB)
----UNLICENSE.txt(1KB)
----.vs()
--------config()
--------restore.dg(199B)
----README.md(2KB)
----Earl.sln(2KB)
----Earl.Tests()
--------UriTemplateTester.cs(36KB)
--------Earl.Tests.csproj(1KB)
--------Properties()
----Deployment()
--------NuGet.exe(5.09MB)
--------publish-earl.ps1(174B)
----.gitattributes(378B)

网友评论