Skip to content

[ISSUE] The routing support is not complete (patch(), options() and any() routing method missing) #80

@lestephane

Description

@lestephane

I'd like to capture all requests, regardless of the method used.

##technique 1: map all methods one by one

-> Not possible since patch() and options() method aren't present, so PATCH and OPTIONS request won't be mappable
-> Too verbose

    QuantumMaid quantumMaid = quantumMaid()
        .withHttpMaid(anHttpMaid()
            .get("/*", dumpRequest())
            //.options("/*", dumpRequest())
            //.patch("/*", dumpRequest())
            .post("/*", dumpRequest())
            .put("/*", dumpRequest())
            .delete("/*", dumpRequest()).build())
        .withLocalHostEndpointOnPort(port);

technique 2: catchall any() method

to route everything to one handler

-> Not possible either as there is no such support in httpmaid

    QuantumMaid quantumMaid = quantumMaid()
        .withHttpMaid(anHttpMaid()
            .any("/*", dumpRequest())
        .withLocalHostEndpointOnPort(port);

Metadata

Metadata

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