Skip to content

Authorization with async-http-client #150

@schmidarnold

Description

@schmidarnold

I am trying to create a request to a server that uses digest authentication, unfortunately without success. I was trying to make a request, then I created from the response header a authorization header and with a new request a sended my authorization header. But I think there is my mistake. I have to send the authorization header with my first request. Is there a possibility to do this with async-http-client, perhaps in the delegate function func didReceiveHead(task: HTTPClient.Task<Response>, _ head: HTTPResponseHead) -> EventLoopFuture<Void> ... I saw that in the source code there is the possibility of basic authentication... How I have to use it.
Thanks, I know that is not a bug or an issue, but I don't know where to aks such a concrete question.

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