Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add HttpClientUtility and more extensions method for fluent rule configuration #114

Merged
merged 5 commits into from
Dec 8, 2023

Conversation

haga-rak
Copy link
Owner

@haga-rak haga-rak commented Dec 8, 2023

No description provided.

fluxzy-ci added 5 commits December 8, 2023 17:40
Changed the naming of 'ReplyWithJson' and 'ReplyWithJsonFile' methods in the MockedResponseAction class to 'ReplyJson' and 'ReplyJsonFile' respectively. This change was made to improve readability and reduce verbosity in the method names.
A new utility class, HttpClientUtility, is introduced to create HttpClients connected to a Fluxzy instance. This class further enables the creation of HttpMessageHandler and HttpClient instances with specified endpoints and settings.
@haga-rak haga-rak changed the title Add HttpClient utility and more extensions method for fluent rule configuration Add HttpClientUtility and more extensions method for fluent rule configuration Dec 8, 2023
@haga-rak haga-rak merged commit 9a066f2 into main Dec 8, 2023
2 of 3 checks passed
@haga-rak haga-rak deleted the dev/http-client-utility branch December 8, 2023 16:48
haga-rak added a commit that referenced this pull request Feb 12, 2024
* Add rule filter template

* Better code highlight for yaml

* Add doc generator base

Signed-off-by: lilou <[email protected]>

* Update filter-templates.md

* Refactor, rename FullUrlFilter to AbsoluteUriFilter

* Add forced example providing in Filter base class,  set samples on filters

* Add dist/ into ignored folders

Signed-off-by: lilou <[email protected]>

* Update filter-templates.md

* Add first draft of Filter document producer

* Set DocBuilder to accept directory instead of file

* Set docgen output to land directly to docs/filters repository directory

* Repharse premade filter

* Update AbsoluteUriFilter.cs

* Update HasTagFilter.cs

* Update ChangeRequestPathAction.cs

* Add FilterScope Description + Extension method to retrieve Description

* Add FilterScopeDescription to outputed docs

* Add category solver

* Added [SupportedOSPlatform("windows")] attribute for Windows specific helper

Signed-off-by: lilou <[email protected]>

* Add example auto generation

Signed-off-by: lilou <[email protected]>

* Beautify output docs

Signed-off-by: lilou <[email protected]>

* - Generate filters docs by reflection
 - Remove ignored properties for Premade Filter

* Correct typos

* Add code type block for usage sample

* Removed settable properties from Premade filters

* Remove ghost directories and set SearchTextFilter to not customizable

* Added action docs generator

* Add docs generatation for every actions

* Reorganize action and filter metadata classes

* Add example for AddResponseHeaderAction

* Make newline consistent for docs

Signed-off-by: lilou <[email protected]>

* Add better example for default action

Signed-off-by: lilou <[email protected]>

* Update action docs

Signed-off-by: lilou <[email protected]>

* Remove empty table on action properties

Signed-off-by: lilou <[email protected]>

* Update docs change for property table ignore

Signed-off-by: lilou <[email protected]>

* Fix merge issues

* Fix read issue after unpacking

* Checkpoint doc gen

* Adding variable holder

* Removing duplicate classes

* Add generic exception for any rule reading/parsing error

* Remove the usage of IPAddress in SpoofDnsAction for serialization issue

* Added samples for AuthorityFilter

* Add sample for Forward Action

* Path adjustements on solution

* Regenerate docs + Path adjustements

---------

Signed-off-by: lilou <[email protected]>
haga-rak added a commit that referenced this pull request Feb 12, 2024
…nfiguration (#114)

* Rename method in AbsoluteUriFilter.cs

* Rename 'ReplyWithJson' methods in MockedResponseAction

Changed the naming of 'ReplyWithJson' and 'ReplyWithJsonFile' methods in the MockedResponseAction class to 'ReplyJson' and 'ReplyJsonFile' respectively. This change was made to improve readability and reduce verbosity in the method names.

* Update PathFilter and add PathFilterExtensions for fluent rule configuration

* Add HttpClientUtility and related tests

A new utility class, HttpClientUtility, is introduced to create HttpClients connected to a Fluxzy instance. This class further enables the creation of HttpMessageHandler and HttpClient instances with specified endpoints and settings.

* Update URI matching method in sample code

---------

Co-authored-by: fluxzy-ci <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant