First, the opening analysis
First of all, the concept of "Http" should be more familiar, it is not based on a specific language, is a general application layer protocol, different languages have different implementation details, but same, the idea
Here we are only familiar with the http module API in nodejs. We generally use a third-party framework, such as Express, during the development process. It encapsulates more simple APIs for building http servers.
I. Opening Analysis
First of all,
Here we are only familiar with the http Module API in nodejs. we generally use a third-party framework, such as Express, during the development process. It encapsulates more simple APIs for building http servers.
I. opening analysis
First of all,
Http response status code and response status code
From: http://hi.baidu.com/starsecond/blog/item/de75458a3cb1b51ac9fc7a6a.html
========================================================== ==========================================
100
HTTP status information, http €? /A> € €? /A> http € €
1. 1xx message
This type of Status Code indicates that the request has been accepted and must be processed.
100 Continue
The client should continue sending the request. This temporary response
Http status code is the basic knowledge of web development, the interview will often appear in this aspect of the exam. 200 Welcome back, master (normal; the request has been completed.) 301 families moved (moved-the requested data has a new
HTTP status code in detail-query data1XX messageThis type of status code, on behalf of which the request has been accepted, needs to be processed. This type of response is a temporary response that contains only the status line and some optional
NodeJS learning notes Http module and nodejs learning notes Module
I. Opening Analysis
First of all, we should be familiar with the concept of "Http". It is not based on a specific language. It is a common application layer protocol. Different
When the server responds to the client, it responds with the corresponding status code, and different status codes have different meanings.1XX: Information class2XX: Success Class3XX: Redirect Class4XX: Client Error class5XX: Service-side Error
First, the opening analysisFirst, the concept of "Http" should be more familiar, it is not based on a specific language, is a general application layer protocol, different languages have different implementation details, but original aim, the idea
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.