basic async-interop support; generator consumer missing
[m6w6/seekat] / lib / API / functions.php
diff --git a/lib/API/functions.php b/lib/API/functions.php
new file mode 100644 (file)
index 0000000..950791d
--- /dev/null
@@ -0,0 +1,12 @@
+<?php
+
+namespace seekat\API;
+
+/**
+ * @param string $type
+ * @param string $value
+ * @return array
+ */
+function auth(string $type, string $value) : array {
+       return ["Authorization" => "$type $value"];
+}