Home / Function/ _create_socket_and_bind() — requests Function Reference

_create_socket_and_bind() — requests Function Reference

Architecture documentation for the _create_socket_and_bind() function in server.py from the requests codebase.

Function python CoreAPI SessionLifecycle calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  9c1fe96e_f734_d307_2548_811db53b8f96["_create_socket_and_bind()"]
  207e6e20_ab2b_b659_8f1d_9639fb3f1963["TLSServer"]
  9c1fe96e_f734_d307_2548_811db53b8f96 -->|defined in| 207e6e20_ab2b_b659_8f1d_9639fb3f1963
  eee1803d_ff9d_a5bb_fc93_93a47f6b787c["_create_socket_and_bind()"]
  eee1803d_ff9d_a5bb_fc93_93a47f6b787c -->|calls| 9c1fe96e_f734_d307_2548_811db53b8f96
  eee1803d_ff9d_a5bb_fc93_93a47f6b787c["_create_socket_and_bind()"]
  9c1fe96e_f734_d307_2548_811db53b8f96 -->|calls| eee1803d_ff9d_a5bb_fc93_93a47f6b787c
  style 9c1fe96e_f734_d307_2548_811db53b8f96 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/testserver/server.py lines 171–176

    def _create_socket_and_bind(self):
        sock = socket.socket()
        sock = self.ssl_context.wrap_socket(sock, server_side=True)
        sock.bind((self.host, self.port))
        sock.listen()
        return sock

Domain

Subdomains

Frequently Asked Questions

What does _create_socket_and_bind() do?
_create_socket_and_bind() is a function in the requests codebase, defined in tests/testserver/server.py.
Where is _create_socket_and_bind() defined?
_create_socket_and_bind() is defined in tests/testserver/server.py at line 171.
What does _create_socket_and_bind() call?
_create_socket_and_bind() calls 1 function(s): _create_socket_and_bind.
What calls _create_socket_and_bind()?
_create_socket_and_bind() is called by 1 function(s): _create_socket_and_bind.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free