인터넷 프로토콜과 지원¶
이 장에서 설명하는 모듈은 인터넷 프로토콜을 구현하고 관련 기술을 지원합니다. 모두 파이썬으로 구현됩니다. 대부분 모듈은 시스템 의존적인 모듈 socket을 요구하는데, 현재 대부분의 대중적인 플랫폼에서 지원됩니다. 다음은 개요입니다:
webbrowser— Convenient web-browser controllerwsgiref— WSGI Utilities and Reference Implementationurllib— URL handling modulesurllib.request— Extensible library for opening URLs- Request 객체
- OpenerDirector 객체
- BaseHandler 객체
- HTTPRedirectHandler 객체
- HTTPCookieProcessor 객체
- ProxyHandler 객체
- HTTPPasswordMgr 객체
- HTTPPasswordMgrWithPriorAuth 객체
- AbstractBasicAuthHandler 객체
- HTTPBasicAuthHandler 객체
- ProxyBasicAuthHandler 객체
- AbstractDigestAuthHandler 객체
- HTTPDigestAuthHandler 객체
- ProxyDigestAuthHandler 객체
- HTTPHandler 객체
- HTTPSHandler 객체
- FileHandler 객체
- DataHandler 객체
- FTPHandler 객체
- CacheFTPHandler 객체
- UnknownHandler 객체
- HTTPErrorProcessor 객체
- 예
- 레거시 인터페이스
urllib.request제약 사항
urllib.response— urllib가 사용하는 응답 클래스urllib.parse— Parse URLs into componentsurllib.error— Exception classes raised by urllib.requesturllib.robotparser— Parser for robots.txthttp— HTTP moduleshttp.client— HTTP protocol clientftplib— FTP protocol clientpoplib— POP3 protocol clientimaplib— IMAP4 protocol clientsmtplib— SMTP protocol clientuuid— UUID objects according to RFC 4122socketserver— A framework for network servershttp.server— HTTP servershttp.cookies— HTTP state managementhttp.cookiejar— Cookie handling for HTTP clientsxmlrpc— XMLRPC 서버와 클라이언트 모듈xmlrpc.client— XML-RPC client accessxmlrpc.server— Basic XML-RPC serversipaddress— IPv4/IPv6 manipulation library