forked from php-fig/fig-standards
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# HTTP Message Meta Document | ||
|
||
## 1. Краткое описание | ||
|
||
Назначение этого предложения состоит в создании набора общих интерфейсов для HTTP сообщений, | ||
как описано в [RFC 7230] (http://tools.ietf.org/html/rfc7230) и | ||
[RFC 7231] (http://tools.ietf.org/html/rfc7231) и URI, как описано в | ||
[RFC 3986] (http://tools.ietf.org/html/rfc3986) (в контексте HTTP сообщения). | ||
|
||
- RFC 7230: http://www.ietf.org/rfc/rfc7230.txt | ||
- RFC 7231: http://www.ietf.org/rfc/rfc7231.txt | ||
- RFC 3986: http://www.ietf.org/rfc/rfc3986.txt | ||
|
||
Все HTTP сообщения сотоят из используемой версии HTTP протокола, заголовков и тела сообщения. | ||
_Request_ основан на сообщении, чтобы включить HTTP методы используемые для данного запроса и | ||
URI в котором лежит запрос. _Response_ Включает код HTTP статуса и сообщение статуса сголасно коду. | ||
|
||
В PHP HTTP сообщения используются в двух контекстах: | ||
|
||
- Для отправки HTTP запроса c помощью расширения `ext/curl`, слоя родных потоков в PHP, и т.д | ||
и обработки принятого HTTP ответа. Другими словами, HTTP сообщения используются при работе | ||
РНР как _HTTP client_. |