Skip to content

Add with_basic_auth() function #5

@chriscrabtree

Description

@chriscrabtree

First, I really like the design of this: feels idiomatic, extensible, and explicit.

Anyway, I added this with_basic_auth() in my own client code at first, but thought it would be more naturally at home as part of this package. Happy to submit a PR if you like (and if you don't mind dealing with a first-time open-source contributor).

This is the shape of it:
def with_basic_auth(request = %HttpRequest{}, username, password) when is_binary(username) and is_binary(password) do...

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions