From 6ac1346fa9bc4915b2ef56f622df37e98b39e8f6 Mon Sep 17 00:00:00 2001 From: Stefan Blanke Date: Mon, 12 Oct 2020 19:05:53 +0200 Subject: [PATCH 1/3] Add PHP example for using the HTTP daemon in docs. (#61) * Add PHP example for using the HTTP daemon in docs. * Use procedural code for example snippet * Remove this variable --- docs/daemon.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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 | |-|-| From f22fe6528024e5e284fa844d71fbdaa7863d232c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 14 Oct 2020 13:30:23 +0200 Subject: [PATCH 2/3] Bump junit from 4.13 to 4.13.1 (#63) Bumps [junit](https://github.com/junit-team/junit4) from 4.13 to 4.13.1. - [Release notes](https://github.com/junit-team/junit4/releases) - [Changelog](https://github.com/junit-team/junit4/blob/main/doc/ReleaseNotes4.13.1.md) - [Commits](https://github.com/junit-team/junit4/compare/r4.13...r4.13.1) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index ebe2131..e98c658 100644 --- a/pom.xml +++ b/pom.xml @@ -124,7 +124,7 @@ junit junit - 4.13 + 4.13.1 test From 2c09da5f9d4c595b55b81b7ac4a84897cb893c82 Mon Sep 17 00:00:00 2001 From: "Andreas Penski (init)" Date: Wed, 14 Oct 2020 15:51:11 +0200 Subject: [PATCH 3/3] (chore) eol style defined --- .gitattributes | 1 + 1 file changed, 1 insertion(+) create mode 100644 .gitattributes 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