4c97de1fb4cd7e49c7e3985aa2c999d0e11a5611
Implement a new asynchronous Gitea API client module (gitea_client.py) using aiohttp, providing methods for repository CRUD operations and issue tracking (create, update, close). The client supports OAuth2 token authentication, optional TOTP MFA header, sudo impersonation, and paginated responses for listing endpoints. Also refactor http.h to remove auth.h dependency, add chunked content support with INITIAL_BUFFER_SIZE and MAX_HEADER_SIZE defines, merge create_context and create_context2 into single function with SSL_VERIFY_NONE option, and replace exit() calls with graceful error returns in socket creation.
Examples / research
This is a collection of source code examples and research that I share with others online. Not all is written by me. It's also used for just sharing resources on discussion forums. The contents are mainly destined to be read by a software developer.
Do you see something you want to know more about? Contact retoor@molodetz.nl.
Languages
Python
86.7%
C
8.7%
HTML
2.8%
JavaScript
1.5%
Shell
0.3%