调试 Swagger API 时一般会使用 postman 工具,但可以有更加短平快的手段、工具满足我们轻量的调试需求。
curl ,linux 平台下常用,或者 windows 平台下 git bash 中也带有 curl 命令。
1 2 3 4 5 6 7
-X, --request <method> Specify request method to use -d, --data <data> HTTP POST data -H, --header <header/@file> Pass custom header(s) to server -v, --verbose Make the operation more talkative -F, --form <name=content> Specify multipart MIME data To force the 'content' part to be a file, prefix the filename with an @ sign. @ makes a file get attached in the post as a file upload, ...
使用上述参数,实际演练一下:使用 -d 或 -F 参数时,curl 能够自行推断出要使用 POST 方法
This class is primarily designed for use in QDateTime; most applications will not need to access this class directly and should instead use QDateTime with a Qt::TimeSpec of Qt::TimeZone.
If you require a QDateTime that uses the current system time zone at any given moment then you should use a Qt::TimeSpec of Qt::LocalTime.
Time Zone Offsets 时差
The total offset is comprised of two component parts, the standard time offset and the daylight-saving time offset. 夏时制