projects
/
m6w6
/
seekat
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
| inline |
side by side
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
+++ b/
lib/API/functions.php
@@ -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"];
+}