Skip to content

Conversation

@HavokInspiration
Copy link
Member

Follows #4537 for the French docs.

I modified some things I think were missed in the original version, be sure to check it out before merging.

@HavokInspiration HavokInspiration added this to the 3.x milestone Jan 8, 2017
.. php:method:: withHeader($header, $value)
Les définitions de headers se font avec la méthode :php:meth:`Cake\\Http\\Response::withHeader()`.
Comme tous les méthodes de l'interface PSR-7, cette méthode retourne une
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

toutes les méthodes

$this->response->withHeader('X-CakePHP', 'yes!');

Dans le code ci-dessus, la réponse ne contiendra pas le header ``X-CakePHP``
car la valeur retournée par ``withHeader()`` n'a pas été persisté. Pour avoir
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

persistée


Définir les En-têtes de Requête d'Origine Croisée (Cross Origin Request Headers = CORS)
Définir les En-têtes de Requête d'Origine Croisée (Cross Origin ServerRequest Headers = CORS)
=======================================================================================
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing some ====

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed and the "ServerRequest" should be "Request". The Search and Replace was a bit destructive.

@HavokInspiration
Copy link
Member Author

Thanks for the review @cake17. I'll probably make the necessary changes tomorrow.

@HavokInspiration
Copy link
Member Author

@cake17 I took care of it.

@antograssiot antograssiot merged commit 24a5b15 into 3.next Jan 10, 2017
@antograssiot antograssiot deleted the 3.next-fr-response branch January 10, 2017 15:00
@antograssiot
Copy link
Contributor

Nice work @HavokInspiration

@cake17
Copy link
Member

cake17 commented Jan 10, 2017

top @HavokInspiration !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants