+4
-4
src/Http/HasHttp.php
+4
-4
src/Http/HasHttp.php
···
96
96
/**
97
97
* Make GET request
98
98
*/
99
-
protected function get(string $endpoint, array $params = []): Response
99
+
public function get(string $endpoint, array $params = []): Response
100
100
{
101
101
return $this->call($endpoint, 'GET', $params);
102
102
}
···
104
104
/**
105
105
* Make POST request
106
106
*/
107
-
protected function post(string $endpoint, array $body = []): Response
107
+
public function post(string $endpoint, array $body = []): Response
108
108
{
109
109
return $this->call($endpoint, 'POST', null, $body);
110
110
}
···
112
112
/**
113
113
* Make DELETE request
114
114
*/
115
-
protected function delete(string $endpoint, array $params = []): Response
115
+
public function delete(string $endpoint, array $params = []): Response
116
116
{
117
117
return $this->call($endpoint, 'DELETE', $params);
118
118
}
···
120
120
/**
121
121
* Make POST request with raw binary body (for blob uploads)
122
122
*/
123
-
protected function postBlob(string $endpoint, string $data, string $mimeType): Response
123
+
public function postBlob(string $endpoint, string $data, string $mimeType): Response
124
124
{
125
125
$session = $this->sessions->ensureValid($this->did);
126
126
$url = rtrim($session->pdsEndpoint(), '/').'/xrpc/'.$endpoint;