Requests
Flask requests used Requests library from python. Request is terms from HTTP/1.1. HTTP/1.1 is defined under RFC 2616.HTTP messages consist of requests from client to server and responses from server to client.
Request and Response messages use the generic message format of RFC 822 for transferring entities (the payload of the message). Both types of message consist of a start-line, zero or more header fields (also known as "headers"), an empty line (i.e., a line with nothing preceding the CRLF) indicating the end of the header fields, and possibly a message-body.
HTTP header fields, which include general-header, request-header, response-header, and entity-header fields, follow the same generic format as that given in Section 3.1 of RFC 822. Each header field consists of a name followed by a colon (":") and the field value.
The message-body (if any) of an HTTP message is used to carry the entity-body associated with the request or response.
There are a few header fields which have general applicability for both request and response messages, but which do not apply to the entity being transferred. These header fields apply only to the message being transmitted.
general-header included Cache-Control, Connection, Date, Pragma, Trailer, Transfer Encoding, Upgrade, Via, Warning.
No comments:
Post a Comment