From 2368dc53d0c724f1899aeb2874ba1a763e11f0b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Mon, 29 Jan 2024 15:40:26 +0100 Subject: Cowboy 2.11 --- .../2.5/manual/cowboy_handler.terminate/index.html | 205 --------------------- 1 file changed, 205 deletions(-) delete mode 100644 docs/en/cowboy/2.5/manual/cowboy_handler.terminate/index.html (limited to 'docs/en/cowboy/2.5/manual/cowboy_handler.terminate/index.html') diff --git a/docs/en/cowboy/2.5/manual/cowboy_handler.terminate/index.html b/docs/en/cowboy/2.5/manual/cowboy_handler.terminate/index.html deleted file mode 100644 index 4dfa32b7..00000000 --- a/docs/en/cowboy/2.5/manual/cowboy_handler.terminate/index.html +++ /dev/null @@ -1,205 +0,0 @@ - - - - - - - - - - Nine Nines: cowboy_handler:terminate(3) - - - - - - - - - - - - - - - -
-
-
-
- -

cowboy_handler:terminate(3)

- -

Name

-

cowboy_handler:terminate - Terminate the handler

-

Description

-
-
terminate(Reason, PartialReq, State, Handler) -> ok
-
-Reason     :: any()
-PartialReq :: map()
-State      :: any()
-Handler    :: module()
-
-

Call the optional terminate callback if it is defined.

-

Make sure to use this function at the end of the execution of modules that implement custom handler behaviors.

-

Arguments

-
Reason
-

Reason for termination.

-
-
PartialReq
-

The Req object.

-

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.

-
-
State
-

Handler state.

-
-
Handler
-

Handler module.

-
-
-

Return value

-

The atom ok is always returned. It can be safely ignored.

-

Changelog

-
  • 2.0: Function introduced. -
  • -
-

Examples

-
Terminate a handler normally
-
-
cowboy_handler:terminate(normal, Req, State, Handler).
-
-

See also

-

cowboy_handler(3)

- - - - - - -
- -
- - -

- Cowboy - 2.5 - Function Reference - -

- - - -

Navigation

- -

Version select

- - -

Like my work? Donate!

-

Donate to Loïc Hoguin because his work on Cowboy, Ranch, Gun and Erlang.mk is fantastic:

-
- - - - - - - - - -

Recurring payment options are also available via GitHub Sponsors. These funds are used to cover the recurring expenses like food, dedicated servers or domain names.

- - - -
-
-
-
- - - - - - - - - -- cgit v1.2.3