IHttp Considerations¶
This document records the considerations for using IHttp.
IHttpPythonTest Error¶
Error Description
This issue occurs when the mingw compiler executes the IWebCore program. The reason is that QtCreator automatically sets the PYTHONHOME environment variable, leading to multiple Python versions being detected. The solution is simple: set both PYTHONHOME and PYTHONPATH to empty strings in the environment variables, and the error will disappear automatically.
Objects Registered Under mingw Are Not Automatically Registered to the System¶
This issue is related to the compiler. On the msvc platform, users can omit the constructor or set it to = default without affecting Task initialization, registration, or execution. However, in the mingw compiler environment, users must manually define the constructor. Even if the constructor has no content, it must be explicitly written in the .cpp file.
What Packages Need to Be Installed for IHttp?¶
- packaging
This package is used for IMakeCore.
- pytest
Used for testing.
- pytest-html
Used to display Python test results.
Note: One of these packages did not install successfully on WSL, so on WSL, pytest results are only output to the console and not displayed as a web page.