【文件属性】:
文件名称:HTTPRequest:单头C ++ HTTP请求类
文件大小:15KB
文件格式:ZIP
更新时间:2021-05-13 21:35:46
C++
HTTP请求
HTTPRequest是用于发出HTTP请求的单头库。 您可以将其包括在您的项目中并使用它。 HTTPRequest已在macOS,Windows和Linux上进行了测试,但它应可在大多数基于Linux的平台上运行。 支持IPv4和IPv6。
用法
GET请求的例子
# include " HTTPRequest.hpp "
try
{
// you can pass http::InternetProtocol::V6 to Request to make an IPv6 request
http::Request request{ " http://test.com/test " };
// send a get request
const auto response = request. send ( " GET " );
std
【文件预览】:
HTTPRequest-master
----.gitignore(327B)
----UNLICENSE(1KB)
----README.md(2KB)
----include()
--------HTTPRequest.hpp(30KB)
----azure-pipelines.yml(432B)
----test()
--------test.sln(1KB)
--------Makefile(864B)
--------test.xcodeproj()
--------test.vcxproj(8KB)
--------main.cpp(3KB)