Skip to content

Custom URL handing seems to be broken #17

Open
@alex-netkachov

Description

@alex-netkachov

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions