We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a7e583 commit 05e295dCopy full SHA for 05e295d
4.0/responses/README.md
@@ -366,11 +366,20 @@ return DataResponse::make($model)->withHeader('X-Foo', 'Bar');
366
367
#### withHeaders
368
369
-The `withHeaders` method allows you to set multiple headers on the response:
+The `withHeaders` method allows you to set multiple headers on the response. These headers are merged with any existing
370
+headers.
371
372
```php
373
return DataResponse::make($model)->withHeaders([
374
'X-Foo' => 'Bar',
375
'X-Baz' => 'Bat',
376
]);
377
```
378
+
379
+#### withoutHeaders
380
381
+The `withoutHeaders` method allows you to remove headers from the response:
382
383
+```php
384
+return DataResponse::make($model)->withoutHeaders('X-Foo', 'X-Bar');
385
+```
0 commit comments