
jeffmcompsci
Design and Build Great Web APIs: Incorrect reference to example HTTP request (page 24)
Title: Design and Build Great Web APIs: Incorrect reference to example HTTP request (page 24)
Page 23 lists an example HTTP request:
"Here’s what a real HTTP request and response look like:
POST /create-user HTTP/2
Host: www.tutorialspoint.com
Content-Type: application/x-www-form-urlencoded
Content-Length: 46
name=mike&email=mike@example.org&sms=123456789"
Then, on page 24 it states:
"The first line is the start-line and it contains three elements:
• HTTP method (POST)
• URL (/create-user)
• Protocol version (HTTP/2)
The next two lines are part of the header collection. In this example, it contains two values:
- The type of message body being sent (Content-Type: application/x-www-form-urlen- coded)
- The size of the message body (Content-Length: 46)"
Suggestion: Either describe the Host: www.tutorialspoint.com line or change sentence to “The next two lines after the Host line are part of the header collection.”
#web-deveopment #cloud #book-design-and-build-great-web-apis #javascript #pragprog #published-book
Most Liked

mamund
yeah, i’ll describe the host line (will also change it form an existing URL to the example.com series). --mamund
Popular Prag Prog topics









Modern Front-End Development for Rails - application does not start after run bin/setup (page xviii)

Other popular topics










Latest in PragProg
Latest (all)
Categories:
Popular Portals
- /elixir
- /rust
- /wasm
- /ruby
- /erlang
- /phoenix
- /keyboards
- /js
- /rails
- /python
- /security
- /go
- /swift
- /vim
- /clojure
- /haskell
- /java
- /emacs
- /svelte
- /onivim
- /typescript
- /crystal
- /c-plus-plus
- /tailwind
- /kotlin
- /gleam
- /react
- /flutter
- /elm
- /ocaml
- /vscode
- /opensuse
- /centos
- /ash
- /php
- /deepseek
- /scala
- /zig
- /html
- /debian
- /nixos
- /lisp
- /agda
- /textmate
- /sublime-text
- /react-native
- /kubuntu
- /arch-linux
- /revery
- /ubuntu
- /manjaro
- /spring
- /django
- /diversity
- /nodejs
- /lua
- /slackware
- /julia
- /c
- /neovim