mirror of
https://github.com/itplr-kosit/validator.git
synced 2026-05-25 16:55:39 +00:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
8d57cf77f7
3 changed files with 18 additions and 1 deletions
1
.gitattributes
vendored
Normal file
1
.gitattributes
vendored
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
* text eol=lf
|
||||||
|
|
@ -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 |
|
||||||
|-|-|
|
|-|-|
|
||||||
|
|
|
||||||
2
pom.xml
2
pom.xml
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue