Merge remote-tracking branch 'origin/master'

This commit is contained in:
Christian Schlichtherle 2020-10-26 10:39:18 +01:00
commit 8d57cf77f7
3 changed files with 18 additions and 1 deletions

1
.gitattributes vendored Normal file
View file

@ -0,0 +1 @@
* text eol=lf

View file

@ -86,6 +86,22 @@ fetch("http://localhost:8080", requestOptions)
.then(result => console.log(result)) .then(result => console.log(result))
.catch(error => console.log('error', error)); .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 ## Status codes
| code | description | | code | description |
|-|-| |-|-|

View file

@ -124,7 +124,7 @@
<dependency> <dependency>
<groupId>junit</groupId> <groupId>junit</groupId>
<artifactId>junit</artifactId> <artifactId>junit</artifactId>
<version>4.13</version> <version>4.13.1</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency> <dependency>