Abstract
- Defines the format of HTTP Request & HTTP Response
- Stateless Network Protocol
User Authentication
Server doesn’t know if Client login before or not, client needs to include things like Cookies in HTTP Headers to show it is authenticated
- Uses TCP as its underlying transport protocol. So HTTP doesn’t need to worry about data integrity - handled by TCP
- Allow transfer any types of Network Object
HTTP Mechanism
- Client initiates a TCP Connection with the Server
- Client and server access TCP through their Network Domain Socket
- Both client and server send/receive HTTP Request/HTTP Response from the socket interface
Python HTTP Server
- You can spin up a HTTP Server using
python3 -m http.server <PORT_NUMBER>
easily
Cons
Bandwidth Demanding
- Bloated HTTP Headers is included in both HTTP Request & HTTP Response
Slow Start
- TCP Connection has a warm up period