Lesson 2: Say Hello to RFC 7230

Contents
  • The spec
  • Reading assignment
  • Request
  • Response
  • Hello
  • ASCII and UTF-8
  • Content length
  • Haskell
  • The strict, the lazy, and the builder
  • Back to the sockets
Video
  • 14 minutes

We know we’re going to be reading some bytes from this socket and writing some bytes to this socket, but how do we format those so that the client and server can understand each other? We need some common language that they both speak in order for these bytes to have any meaning.

In the context of networking, we call such a language a protocol, and the one we’ll be talking about here is HTTP, which stands for Hypertext Transfer Protocol.

Sign up for access to the full page, plus the complete archive and all the latest content.