path: root/doc/src/manual/cowboy_handler.terminate.asciidoc
diff options
Diffstat (limited to 'doc/src/manual/cowboy_handler.terminate.asciidoc')
1 files changed, 9 insertions, 9 deletions
diff --git a/doc/src/manual/cowboy_handler.terminate.asciidoc b/doc/src/manual/cowboy_handler.terminate.asciidoc
index f10d945..c995ba3 100644
--- a/doc/src/manual/cowboy_handler.terminate.asciidoc
+++ b/doc/src/manual/cowboy_handler.terminate.asciidoc
@@ -8,12 +8,12 @@ cowboy_handler:terminate - Terminate the handler
-terminate(Reason, Req | undefined, State, Handler) -> ok
+terminate(Reason, PartialReq, State, Handler) -> ok
-Reason :: any()
-Req :: cowboy_req:req()
-State :: any()
-Handler :: module()
+Reason :: any()
+PartialReq :: map()
+State :: any()
+Handler :: module()
Call the optional terminate callback if it is defined.
@@ -27,13 +27,13 @@ Reason::
Reason for termination.
The Req object.
-It is possible to pass `undefined` if the handler has no concept
-of requests/responses and discarded the Req object before calling
-this function.
+It is possible to remove fields from the Req object to save memory
+when the handler has no concept of requests/responses. The only
+requirement is that a map is provided.