116 Commits

Author SHA1 Message Date
1345e326a8 Added an attribute that can be used to included extra types in the client generation. Bumped package version to 1.4.1 2023-03-24 07:15:42 -07:00
e8735d8764 Added support for sub types in the C# client code generator. Bumped package version to 1.4.0 2023-03-24 06:52:00 -07:00
fafdb48d51 Bumped package version to 1.3.9 added support for Enum code generation and support for inherited types. 2023-03-23 08:23:08 -07:00
7fd42ae81b Added Logo. 2023-03-15 10:29:07 -07:00
97fecdbe6f Changed all response data extensions to no longer use chunking since we can specify the content length. Bumped package version to 1.3.8 2023-03-03 16:12:13 -08:00
69e71bff0b Cleaned up documentation. Response extension now sets the content length for a few extensions. Added WithNoBody response extension. Bumped package version to 1.3.7 2023-03-03 15:49:39 -08:00
c0f029ce08 Bumped package version to 1.3.6. Added RouteFileCache.Cached function that doesn't return content. 2023-03-03 13:02:11 -08:00
f4fe34e461 Added WithPreCompressedFile extension. Bumped package version to 1.3.5 2023-03-01 17:14:52 -08:00
bd4f5f63b6 Renamed fileName back to filePath 2023-03-01 16:33:41 -08:00
2b892dfd66 Added a new RouteFileCache and more response extensions. Bumped package version to 1.3.4. 2023-03-01 16:19:20 -08:00
662bd03ddc Changed Listener.Block to not use as much CPU usage, at least not visually in the task manager. 2023-03-01 12:22:23 -08:00
f882a74c6d Added compressed response extensions and added more to the example program. Bumped package version to 1.3.3 2023-02-24 12:05:57 -08:00
22633ec94f Added missing json mime type. 2023-02-10 12:12:37 -08:00
f8b726634e Changed mime type for javascript. Bumped package version to 1.3.2. 2023-02-10 12:11:44 -08:00
55d75a7bb0 Improved WithFile extension to allow custom MimeTypes and added an auto mime type detection. Bumped package to 1.3.1 2023-02-09 12:53:03 -08:00
0ee5e98768 Added a missing unit test and fixed another bug with the RouteMatcher. Bumped package version to 1.3.0 2023-02-08 15:23:43 -08:00
85889973c8 Fixed some bugs within the RouteMatcher to better support wild card and catch all matching. Added unit tests. Bumped package version to 1.2.9 2023-02-08 15:14:17 -08:00
12fe2da2a3 Fixed issue where client generator was actually removing routes from the original list. Improved documentation. Bumped package version to 1.2.8 2023-02-08 14:44:00 -08:00
7ffa2d43ef Improved the csharp client generator to check if the base url is null or whitespace and to remove trailing / characters. Fixed some bugs with different client names. Generator also now sets up cookie support. 2023-02-07 13:02:56 -08:00
6ae73aaa7d Changed response extensions to use utf-8 encoding instead of utf-16. Bumped package version to 1.2.6 2023-02-06 12:46:02 -08:00
a1f2f4a91c Fixed bug in client generation. Publishing nuget. 2023-02-06 12:15:39 -08:00
5a1efa90c7 Reverting. Actually this is better. 2023-02-06 11:38:36 -08:00
612a658b77 Changed static csharp generator to now rely on the client name so that it can be easily renamed. 2023-02-06 11:37:33 -08:00
e4c3ee0673 Added static code generation option to the CSharp Client generator. Bumped package version to 1.2.4 2023-02-06 11:21:56 -08:00
2076a1d02b Broke up RestClientGenerator so that custom generators for other languages can be created or the C# one could be modified for custom use cases. 2023-02-06 10:46:38 -08:00
ed1d10ba9d Added Json flag to RouteRequest and RouteResponse to control whether or not the content is Json and needs to be handled. Updated example code. Renamed ClientCodeGenerator to RestClientGenerator. Bumped package version to 1.2.2. 2023-02-06 09:01:06 -08:00
60768b1b3e Added a hidden route attribute that can be used to exclude a given route from code generation. Bumped package version to 1.2.1 2023-02-05 13:27:10 -08:00
5c2b2ea4ef Bumped package version to 1.2.0. Added missing route method conversions to code generator. 2023-02-05 13:02:18 -08:00
887cd687e0 Merge pull request 'Merging Code Generation Feature' (#1) from CodeGen into master
Reviewed-on: #1
2023-02-05 20:29:29 +00:00
42c4682c89 Bumped package version to 1.1.9. Added documentation and cleaned up code. Going to merge into Master. 2023-02-05 12:28:37 -08:00
1475159f1c Added RouteName and Request/Response handling to the code generator. More work is needed. 2023-02-05 10:59:29 -08:00
74f8921f7a Improved the code generator. More to come. 2023-02-04 10:37:30 -08:00
6bb01464e7 Working on C# client code generation. 2023-02-04 08:26:09 -08:00
19ccdb9026 Working on a client code generation feature to help speed up using an api built with this library. 2023-02-03 13:33:28 -08:00
f8704e425b Route arguments are now automatically url decoded by the RouteMatcher. Added a unit test to cover this case. Bumped package version to 1.1.8 2023-02-02 16:14:32 -08:00
023654aba2 Cleaned up code and added new ResponseExtensions to help with bad requests. 2023-02-02 13:33:13 -08:00
c4f4704441 Removed release notes so it's not confusing. 2023-02-02 09:53:03 -08:00
cd6dd40fe2 Bumped package version to 1.1.6 and removed RouteListenerContext in favor of built in HttpListenerContext since it's already apart of .Net. Cleaned up code and build passes. 2023-02-02 09:51:34 -08:00
7dcc28d5e0 Upgrading to latest version of Newtonsoft.Json 2023-01-26 12:01:36 -08:00
9f8d6639c0 Improved package description. 2023-01-26 11:51:01 -08:00
9b849f5ec1 Simplified some class names and structure. New nuget version 1.1.4 2023-01-26 11:48:56 -08:00
6db21454c9 Added nuget package icon and bumped version to 1.1.3 2023-01-26 10:21:24 -08:00
b4414f4da2 Added new route exception event handler. Renamed events. Added better example code. Bumped nuget version to 1.1.2. 2023-01-26 10:08:56 -08:00
77f13ac7ae HttpListener now returns 404 if a route isn't found instead of bad request. Added WithRedirect and WithHtml extensions. Bumped nuget version to 1.1.1 2022-07-26 20:26:53 -07:00
56a17a3c66 Changed release notes for 1.1.0 2022-07-21 10:01:44 -07:00
3e190641a0 Upgraded project to DotNet 6, increased package version to 1.1.0 2022-07-21 09:56:23 -07:00
37356667d9 Cleaning up project structure and simplifying things. 2022-05-05 10:18:28 -07:00
98eaa87df6 Added code to see if the current thread is trying to abort and if so stops blocking. 2022-03-20 12:44:30 -07:00
6c64bbe4be Fixed bugs and added a few helper functions. 2022-03-16 00:24:39 -07:00
836aea0da7 Added more unit tests for the route matcher. Published 1.0.9 nuget package. 2022-03-03 18:55:45 -08:00