Skip to main content
Version: 0.3.x

close_request_session

FunctionPrivateSource

syncstream.webtools.close_request_session(sess: urllib3.HTTPResponse)

A callback for the finializer, this function would be used for cleaning the requests session, if the connection does not need to exist.

Arguments​

Requires​

ArgumentTypeRequired
Description
sessurllib3.HTTPResponseThe http session (request) to be closed.