request.cc:受超级代理启发,由 libcurl 支持的简单 HTTP 请求库

时间:2024-07-11 02:20:23
【文件属性】:

文件名称:request.cc:受超级代理启发,由 libcurl 支持的简单 HTTP 请求库

文件大小:7KB

文件格式:ZIP

更新时间:2024-07-11 02:20:23

C++

请求.cc 受启发,由支持的简单 HTTP 请求库。 例子 # include < assert> # include < iostream> # include " request.h " int main (){ littlstar::Request *req = new littlstar::Request; littlstar::Response *res = NULL ; req-> Get ( " https://littlstar.com/api/v1/videos " ); req-> Query ( " foo " , " bar " ); req-> Set ( " X-ApiKey " , " myapikey " ); req-> Accept ( " application/json " ); res = req-> End


【文件预览】:
request.cc-master
----test.cc(5KB)
----.gitignore(46B)
----package.json(326B)
----Makefile(488B)
----History.md(276B)
----.travis.yml(231B)
----request.cc(7KB)
----Readme.md(640B)
----request.h(3KB)
----example.cc(437B)

网友评论