diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..07764a7 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text eol=lf \ No newline at end of file diff --git a/docs/daemon.md b/docs/daemon.md index e3f7996..d49af40 100644 --- a/docs/daemon.md +++ b/docs/daemon.md @@ -86,6 +86,22 @@ fetch("http://localhost:8080", requestOptions) .then(result => console.log(result)) .catch(error => console.log('error', error)); ``` + +* `PHP` (Symfony HttpClient) +```php +$httpClient = HttpClient::create(); + +$response = $httpClient->request('POST', 'http://localhost:8080', [ + 'headers' => [ + 'Content-Type' => 'application/xml', + ], + 'body' => fopen('/path/to/some.xml', 'r'), +]); + +echo $response->getContent(); + +``` + ## Status codes | code | description | |-|-| diff --git a/pom.xml b/pom.xml index ccaa9e9..f6d4c5a 100644 --- a/pom.xml +++ b/pom.xml @@ -124,7 +124,7 @@ junit junit - 4.13 + 4.13.1 test