* Make rate-limiting client whitelist dynamic
* Refactor `RateLimitOptions.ClientWhiteList`
* Fix typo in variable `enbleRateLimiting`
* Fix case in variable `clientIdheader`
author Taiwo Otubamowo <totubamowo@deloitte.co.uk>
* fix 1045
* #492 log 500 with error log level, acceptance test, unit test
* #492 minor changes
* initial commit for new feature #1077
allow to limit the number of concurrent tcp connection to a downstream service
* protect code against value not in accurate range
add unit test
* Do not crash host on Dispose
* Add test
* Pin GitVersion.CommandLine package version
* #683 validate if there are duplicated placeholders in UpstreamPathTemplate
* Use registered scheme from Eureka (#1087)
* extra test
* very brief mention MaxConnectionsPerServer in docs
* build develop like a PR
* more docs
* test
Co-authored-by: Taiwo O. <44668623+totubamowo@users.noreply.github.com>
Co-authored-by: Catcher Wong <catcher_hwq@outlook.com>
Co-authored-by: jlukawska <56401969+jlukawska@users.noreply.github.com>
Co-authored-by: buretjph <58700930+buretjph@users.noreply.github.com>
Co-authored-by: Jonathan Mezach <jonathanmezach@gmail.com>
Co-authored-by: 彭伟 <pengweiqhca@sina.com>
* initial commit for new feature #1077
allow to limit the number of concurrent tcp connection to a downstream service
* protect code against value not in accurate range
add unit test
* Do not crash host on Dispose
* Add test
* Pin GitVersion.CommandLine package version
* #683 validate if there are duplicated placeholders in UpstreamPathTemplate
* Use registered scheme from Eureka (#1087)
* extra test
* very brief mention MaxConnectionsPerServer in docs
* build develop like a PR
* more docs
Co-authored-by: jlukawska <56401969+jlukawska@users.noreply.github.com>
Co-authored-by: buretjph <58700930+buretjph@users.noreply.github.com>
Co-authored-by: Jonathan Mezach <jonathanmezach@gmail.com>
Co-authored-by: 彭伟 <pengweiqhca@sina.com>
* use HttpContext.RequestAborted to support cancel a request
* register context.HttpContext.RequestAborted.ThrowIfCancellationRequested() in ExceptionHandlerMiddleware
* add LangVersion
* add default number to OcelotErrorCode
fix unit test
* revert back to one line
* #574 consolidate some code, man the config stuff is a mess!
* #574 just use the downstream re route and the key for caching http clients
* #574 added benchmark, i was suprised to learn using a complex type was faster than a string in benchmark .net dictionary tests, hey ho probably dont have enough data in the type...
* #568 Ocelot wont start if QoSOptions specified and no QoS DelegatingHandler registered e.g. no use of Ocelot.Provider.Polly. Also adds a NoQosDelegatingHandler and logs an error if ive missed something and the user can get to making the request
* #568 sadly something wierd with IServiceProvider and FluentValidation so I'm just defaulting to warning and noqosdelegatinghandler if someone doesnt register but provides options, also added basic in memory cache in case people dont use a specific package
* added delegate to select last handler
* #529 implemented a way we can inject the last delegating handler
* wip - moving code
* #529 removed loads of qos code and moved it into Ocelot.Provider.Polly
* #529 can now inject http client expcetions to ocelot errors mappers and updated docs
* added delegate to select last handler
* #529 implemented a way we can inject the last delegating handler
* wip - moving code
* #529 removed loads of qos code and moved it into Ocelot.Provider.Polly
* #340 started looking at supporting automatic routing when using service discovery
* #340 getting old routing tests to pass
* #340 renamed stuff to provider rather than finder, as its not longer finding anything
* #340 working towards supporting dynamic routing
* #340 loads of refactoring to make configuration work with dynamic routing
* #340 refactor consul config code so the registry class owns it
* #340 default to consul to maintain backwards compat
* #340 added docs, finished this branches todos
* started messing around with sticky sessions idea
* more tests for sticky session thing
* more faffing cant make up my mind how to do this
* +semver: breaking added sticky session load balancer and changed way load balancer configuration is set by user
* #336 made tests BDDFy
* #318 http client obeys Qos timeout or defaults to 90 seconds, which is think is default for http client anyway but zero docs....
* #318 updated docs to specify default timeout and make it clear how to set it on a ReRoute basis
* #318 missed this
* #318 missed this
* #298 initial hacking around better aggregation
* #298 bit more hacking around
* #298 abstraction over httpresponsemessage
* #298 tidying up
* #298 docs
* #298 missed this
* #212 - hacked websockets proxy together
* faffing around
* #212 hacking away :(
* #212 websockets proxy middleware working
* #212 map when for webockets working
* #212 some test refactor
* #212 temp commit
* #212 websockets proxy working, tests passing...need to do some tidying and write docs
* #212 more code coverage
* #212 docs for websockets
* #212 updated readme
* #212 tidying up after websockets refactoring
* #212 tidying up after websockets refactoring
* #212 tidying up after websockets refactoring
* stuck a warning in about logging levels into docs!
* #280 can now add response headers inc trace id, now need to consolidate the header place holder stuff
* #280 changed port for linux tests
* #280 lots of hacking around to handle errors and consolidate placeholders into one class
* #274 added acceptance tests, need to work out failing unit tests but probably going to be a redesign where we hold a reference to the cookie container and empty it if needed
* #274 updated code coverage value
* #274 offloaded cache logic to builder in preparation for adding state
* #274 hacked something together but this is not right approach
* #274 updated defaults and docs
* #274 updated code coverage
* #264 added handlers to config
* #264 added global handlers object and defaut param for method, not sure this is correct api for users yet
* #264 Can now add all sorts of delegating handlers in all sorts of ways
* +semver: breaking #264
* failing test
* failing test but needs real butterfly server running..need to fix that...also worked out ive broken tracing...yey
* brought in butterfly source code so i can work out how to write acceptance tests for this...
* fixed the bug but still need to fix tracing
* tracing working again across services but need to make tracing hook into new Ocelot middleware as it still uses asp.net middleware
* removed butterfly libs brought in for testing
* started messing around with this on the train last night
* mega hacking away to change middleware into Ocelot iddleware
* scoped data repo back in
* broken commit getting tests working
* another broken commit farting around with tests
* all unit tests passing again
* mw pipeline for ocelot...still loads of hacks but getting there now to get acceptance tests working, then fix config so you can have aggregate and then imlement multiplexer, then mapping to response...loads to do
* all tests passing before aggregation feature implemented
* removed all the request middleware stuff we dont need it
* updated how errors work...tho i think there could be edge case here when aggregating because one downstream could error and this would effect another
* removed multiplexer so you dont have to send route down, this isnt very thread safe...sigh
* hacking around getting the config for aggregates in, this might change
* refactored builder and unit tests passing now
* Updated a bunch of ports for tests
* plugged in code to create reroutes that are aggregates
* made multiplexer a class
* hacked test to death
* simple aggregator done, initial validation done
* removed request id from context, it is still specific for http request
* now aggregates to json always
* docs for aggregate reroutes
* Updated docs
* temp commit
* trying to work out how to expose the http handlers in a decent way..
* pissing about at lunch
* changed to func so you can instanciate object or new it up each time
* docs for dele handlers
* upgraded to sdk 2.1.4
* some validation for consul services
* feat: use Https://github.com/ButterflyAPM to monitor each API request monitoring metrics
* feat: using DiagnosticSource and Butterfly.OpenTracing
* refactor:refactor Ocelot tracing, merge code into OcelotDiagnosticListener
* refactor: move OcelotHttpTracingHandler to Requester
* fix: Requester\HttpClientBuilder.cs(10,14): error CS0234: The type or namespace name 'Tracing' does not exist in the namespace
* feat: add test should_set_up_tracing
* feat : Remove extraneous code
* feat: remove unused DiagnosticSource diagnostic
* fix : test UseTracing
* add test should_call_scoped_data_repository_QosProviderError
* add test should_return_any_errors
* add test HttpClientHttpRequesterTest
* it should keep it can not be deleted
* hacked together load balancing reroutes in fileconfig
* some renaming and refactoring
* more renames
* hacked away the old config json
* test for issue 213
* renamed key
* dont share ports
* oops
* updated docs
* mvoed docs around
* port being used