vert-x3 / vertx-service-discovery

Some tools one can use for doing microservices with Vert.x
Apache License 2.0
115 stars 67 forks source link

allow access to headers #30

Closed cazacugmihai closed 7 years ago

cazacugmihai commented 8 years ago

Allow writing and reading headers for EventBusService.

E.g.:

EventBusService.getProxy(discovery, SomeService) { AsyncResult<SomeService> ar1 ->
    SomeService someService = ar1.result()
    // here, it will be nice to have an option to allow *sending* some headers along the "someCommand"
    someService.someMethod(someCommand) { AsyncResult<SomeResult> ar2 ->
        // do something
    }
}

interface SomeService {
    // here, it will be nice to have an option to allow *reading* headers along the "someCommand"
    void someMethod(SomeCommand someCommand, Handler<AsyncResult<SomeResult>> handler) {
        // do something
    }
}
cazacugmihai commented 8 years ago

Is this possible to be included in the next version (3.3.3)? I need it for authorization.

cazacugmihai commented 7 years ago

+1

cescoffier commented 7 years ago

Can you open this issue on https://github.com/vert-x3/vertx-service-proxy. It's not related to service discovery.

cazacugmihai commented 7 years ago

Sure. You can find it here.