Skip to content

Async callback? #2

@hongkongkiwi

Description

@hongkongkiwi

First of all, thank you so much for making this!! It's really fantastic and you've totally taken the pain out of writing an icap server.

I'm facing a bit of an issue and it might seem simple to you so any help is appreciated.

Essentially I want to scan incoming requests for the uri (done this), then use that uri to do a blacklist lookup or scanning from a db. The db callback is asynchronous so that means I don't know when it's going to come back.

How could I integrate this into your model? It seems that processing icap requests is synchronous. Essentially I am happy to keep receiving data, but at some point I want come back and say yes finally this is allowed, or finally this is not allowed.

Any quick examples?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions