From 0ddaee41ec753805fa12eeabd679870802528dac Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Tue, 29 May 2018 17:03:51 -0700 Subject: fixes #495 SEE ALSO should use [align=left] fixes #494 ERRORS section should use [horizontal] These changes address some basic formatting consistency things, and ultimately (when combined with other tooling changes that are not part of this repo) lead to vastly improved layout in the printed documentation. While here we removed trailing whitespace, and did certain other minor markup tweaks. --- docs/man/nng_http_handler_alloc.3http.adoc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'docs/man/nng_http_handler_alloc.3http.adoc') diff --git a/docs/man/nng_http_handler_alloc.3http.adoc b/docs/man/nng_http_handler_alloc.3http.adoc index be6f2568..630871cc 100644 --- a/docs/man/nng_http_handler_alloc.3http.adoc +++ b/docs/man/nng_http_handler_alloc.3http.adoc @@ -108,7 +108,7 @@ the extension, then `application/octet-stream` is used. The third member of this family, `nng_http_handler_alloc_file()`, creates a handler to serve up a single file; it does not traverse directories -or search for `index.html` or `index.htm` files. +or search for `index.html` or `index.htm` files. The `Content-Type` will be set automatically based upon the extension of the requsted file name. @@ -129,12 +129,14 @@ This function returns 0 on success, and non-zero otherwise. == ERRORS +[horizontal] `NNG_EINVAL`:: An invalid _path_ was specified. `NNG_ENOMEM`:: Insufficient free memory exists to allocate a message. `NNG_ENOTSUP`:: No support for HTTP in the library. == SEE ALSO +[.text-left] <>, <>, <>, -- cgit v1.2.3-70-g09d2