Permalink
Browse files

Merge pull request #27 from edge/patch-1

use syntax highlighting in README.md
  • Loading branch information...
2 parents db9d966 + d123ea4 commit 5c7011b0eaed4602b353190f2ff122e23cc29dfe @kazuho kazuho committed on GitHub Sep 16, 2016
Showing with 2 additions and 2 deletions.
  1. +2 −2 README.md
View
4 README.md
@@ -23,7 +23,7 @@ The library exposes four functions: `phr_parse_request`, `phr_parse_response`, `
The example below reads an HTTP request from socket `sock` using `read(2)`, parses it using `phr_parse_request`, and prints the details.
-```
+```c
char buf[4096], *method, *path;
int pret, minor_version;
struct phr_header headers[100];
@@ -71,7 +71,7 @@ for (i = 0; i != num_headers; ++i) {
The example below decodes incoming data in chunked-encoding. The data is decoded in-place.
-```
+```c
struct phr_chunked_decoder decoder = {}; /* zero-clear */
char *buf = malloc(4096);
size_t size = 0, capacity = 4096, rsize;

0 comments on commit 5c7011b

Please sign in to comment.