Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: oldheating gps motorhome heating
http/status/http-not-modified.c@130:9a5b8fe308f1, 2019-09-24 (annotated)
- Committer:
- andrewboyson
- Date:
- Tue Sep 24 18:16:47 2019 +0000
- Revision:
- 130:9a5b8fe308f1
Added http
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| andrewboyson | 130:9a5b8fe308f1 | 1 | #include "http.h" |
| andrewboyson | 130:9a5b8fe308f1 | 2 | |
| andrewboyson | 130:9a5b8fe308f1 | 3 | void HttpNotModified() |
| andrewboyson | 130:9a5b8fe308f1 | 4 | { |
| andrewboyson | 130:9a5b8fe308f1 | 5 | HttpAddText("HTTP/1.1 304 Not Modified\r\n" |
| andrewboyson | 130:9a5b8fe308f1 | 6 | "Date: "); |
| andrewboyson | 130:9a5b8fe308f1 | 7 | char pDate[HTTP_DATE_LENGTH]; |
| andrewboyson | 130:9a5b8fe308f1 | 8 | HttpDateFromNow(pDate); |
| andrewboyson | 130:9a5b8fe308f1 | 9 | HttpAddText(pDate); |
| andrewboyson | 130:9a5b8fe308f1 | 10 | HttpAddText("\r\n" |
| andrewboyson | 130:9a5b8fe308f1 | 11 | "\r\n"); |
| andrewboyson | 130:9a5b8fe308f1 | 12 | } |