- WIP on request/response handling

This commit is contained in:
mcndave committed 2023-10-30 15:21:01 +00:00
1 parent 5d9c0f0dbf
commit 7e93e57515
10 files changed
+133 -121

No files matched your search

+11
View File
@@ -7,4 +7,15 @@ enum ContentTypeEnum : string
case Json = "application/json";
case Multipart = "multipart/form-data";
case UrlEncoded = "application/x-www-form-urlencoded";
public function defaultBody() : string
{
switch($this) {
case static::Json:
return "{}";
default:
return "";
}
}
}