*/
Result httpcDownloadData(httpcContext *context, u8* buffer, u32 size, u32 *downloadedsize);
+/**
+ * @brief Sets Keep-Alive for the context.
+ * @param context Context to set flags on.
+ * @param options Keep-Alive option flags.
+ */
+Result httpcSetKeepAlive(httpcContext *context, u32 options);
+
return cmdbuf[1];
}
+
+Result httpcSetKeepAlive(httpcContext *context, u32 options)
+{
+ u32* cmdbuf=getThreadCommandBuffer();
+
+ cmdbuf[0]=IPC_MakeHeader(0x37,2,0); // 0x370080
+ cmdbuf[1]=context->httphandle;
+ cmdbuf[2]=options;
+
+ Result ret=0;
+ if(R_FAILED(ret=svcSendSyncRequest(context->servhandle)))return ret;
+
+ return cmdbuf[1];
+}