Twitch SDK (Internal)
cfhttprequest.h
Go to the documentation of this file.
1 /********************************************************************************************
2 * Twitch Broadcasting SDK
3 *
4 * This software is supplied under the terms of a license agreement with Twitch Interactive, Inc. and
5 * may not be copied or used except in accordance with the terms of that agreement
6 * Copyright (c) 2012-2016 Twitch Interactive, Inc.
7 *********************************************************************************************/
8 
9 #pragma once
10 
12 
13 namespace ttv
14 {
15  class CfHttpRequest;
16 }
17 
18 
20 {
21 public:
22  virtual TTV_ErrorCode SendHttpRequest(const std::string& url,
23  const std::vector<HttpParam>& requestHeaders,
24  const uint8_t* requestBody,
25  size_t requestBodySize,
26  HttpRequestType httpReqType,
27  uint timeOutInSecs,
28  HttpRequestHeadersCallback headersCallback,
29  HttpRequestCallback responseCallback,
30  void* userData);
31 };
HttpRequestType
Definition: httprequest.h:25
Definition: httprequest.h:104
JSON (JavaScript Object Notation).
Definition: adsapi.h:16
uint32_t TTV_ErrorCode
Definition: errortypes.h:30
std::function< bool(uint statusCode, const std::map< std::string, std::string > &headers, void *userData)> HttpRequestHeadersCallback
Definition: httprequest.h:51
unsigned int uint
Definition: coretypes.h:18
std::function< void(uint statusCode, const std::vector< char > &body, void *userData)> HttpRequestCallback
Definition: httprequest.h:52
virtual TTV_ErrorCode SendHttpRequest(const std::string &url, const std::vector< HttpParam > &requestHeaders, const uint8_t *requestBody, size_t requestBodySize, HttpRequestType httpReqType, uint timeOutInSecs, HttpRequestHeadersCallback headersCallback, HttpRequestCallback responseCallback, void *userData)
Definition: cfhttprequest.h:19