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

Custom URL handing seems to be broken #17

Open
alex-netkachov opened this issue Dec 15, 2015 · 0 comments
Open

Custom URL handing seems to be broken #17

alex-netkachov opened this issue Dec 15, 2015 · 0 comments

Comments

@alex-netkachov
Copy link

With master it is possible to inject own handlers for the specific URL by in intercepting them IHttpListener.GetContext.

For example:

let listener =
    { new IHttpListener with
        member _.GetContext e =
            match CustomContextHandler e with
            | None -> null
            | Some context -> CustomListenerContext context }

So listener implements GetContext where it first tries to process request with CustomContextHandler.

With development this approach does not work any more as GetContext was removed from the IHttpListener. Is there are another way of providing different handlers for specific GET/POST URLs?

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

No branches or pull requests

1 participant