Search This Blog

Featured Post

Machine Learning, Big Data, AI, Deep Learning

Monday, April 16, 2018

16/04/2018 Request, Idea

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.

Idea

Thinking of creating a logbook like webpage to record learning log and sharing knowledge. Generally idea is the page would separate into two parts. Left part is the main content and the right part is the log or comment. The log or comment on the right generally show in one sheet but related with the different part on the left with a linked line. 

No comments:

Post a Comment