Skip to content

Commit

Permalink
update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Baptouuuu committed Oct 22, 2023
1 parent e42dba0 commit 2ff4854
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ $request = ServerRequestFactory::default()();

```php
use Innmind\Http\{
Message\Response\Response,
Message\StatusCode,
Response,
Response\StatusCode,
ProtocolVersion,
Headers,
Header,
Expand All @@ -32,7 +32,7 @@ use Innmind\Http\{
use Innmind\Filesystem\File\Content;
use Innmind\TimeContinuum\Earth\Clock;

$response = new Response(
$response = Response::of(
StatusCode::ok,
ProtocolVersion::v11,
Headers::of(
Expand All @@ -58,8 +58,8 @@ Content-Type : application/json

```php
use Innmind\Http\{
Message\Request\Request,
Message\Method,
Request,
Method,
Content\Multipart,
Header\ContentType,
Header\ContentType\Boundary,
Expand All @@ -73,7 +73,7 @@ use Innmind\Filesystem\{
use Innmind\Url\Url;

$boundary = Boundary::uuid();
$request = new Request(
$request = Request::of(
Url::of('http://some-server.com/')
Method::post,
ProtocolVersion::v11,
Expand All @@ -82,7 +82,7 @@ $request = new Request(
->with('some[key]', 'some value')
->withFile('some[file]', File::named(
'whatever.txt',
Content\Lines::ofContent(' can be any file content'),
Content::ofString(' can be any file content'),
)),
);
```

0 comments on commit 2ff4854

Please sign in to comment.