HTTP - Response

1 - About

An HTTP response is a message sent from a server to a client in response to a request.

It's the second part of a fetch, the first being a request.

3 - Example

Example of a response that returns an HTML document

HTTP/1.1 200 OK
Date: Sun, 14 Feb 2021 13:39:15 GMT
Content-Type: text/html; charset=utf-8
Connection: keep-alive
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate
Pragma: no-cache
Set-Cookie: Session=Z2VyYXJkbm; path=/; secure; HttpOnly
X-UA-Compatible: IE=edge,chrome=1
Content-Length: 66697

<!DOCTYPE html >
<html xmlns="" xml:lang="en" lang="en" dir="ltr" style="font-size:">
<meta name="generator

4 - Format

The response message has:

5 - Headers

Most known Response header

5.1 - Content Type

5.2 - CSP

6 - Creation

A response is produced by an handler

Data Science
Data Analysis
Data Science
Linear Algebra Mathematics

Powered by ComboStrap