uHttpSharp icon indicating copy to clipboard operation
uHttpSharp copied to clipboard

Remove external dependencies?

Open igorgatis opened this issue 11 years ago • 6 comments

As an embeddable module, it would be nice if this project had no external dependencies. Looking at the code, it seems like log4net could be easily replaced by a delegate (passed as optional parameter to HttpServer constructor). I wonder whether JSON could also be handled by delegates. Alternatively, all controllers could live in separate DLL and that DLL would require Newtonsoft.Json.

igorgatis avatar Aug 26 '14 23:08 igorgatis

I might seperate the controllers and all other handlers to seperate package "uHttpSharp-extras" like some other open source projects do.

In that case, uHttpSharp will stay slim with only "core" classes, while uHttpSharp-extras will have the bundled handlers, controllers, modelBinders, etc'.

What do you think?

Shani.

shanielh avatar Aug 27 '14 05:08 shanielh

Looks good.

igorgatis avatar Aug 27 '14 10:08 igorgatis

Would you use uHttpSharp core without the bundled handlers, controllers, etc'..?

shanielh avatar Aug 27 '14 10:08 shanielh

I'm interested on mapping string (or regex) to a function. I don't mind the extra stuff. The external dependency is the biggest drawback.

igorgatis avatar Aug 27 '14 10:08 igorgatis

@igorgatis Log4net is not a dependency anymore, thanks to #13

shanielh avatar Mar 20 '15 18:03 shanielh

Can we update the other dependencies in a new release?

Psilax avatar Apr 25 '19 07:04 Psilax