Pudu programming language
Menu
API reference

Std.Http.basicAuth

1 declaration

fn

basicAuth: Str -> Str -> Str

This is a callable function.

What it does

A user name and password written as a basic authorization value.

The credentials are encoded, not protected: basic authorization is only safe

over a secured connection, and this function cannot check that it is on one.

Read the signature

  • The text after the name is the type checked by Pudu.
  • Read arrows from left to right: inputs come first, and the final type is returned.

Back to Std.HttpSearch related declarations