Twitch SDK (Internal)
java_httprequest.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 
13 
14 
15 namespace ttv
16 {
17  namespace binding
18  {
19  namespace java
20  {
21  class JavaHttpRequest;
22  }
23  }
24 }
25 
26 
28 {
29 public:
30  JavaHttpRequest(JNIEnv* jEnv, jobject jObject);
31  virtual ~JavaHttpRequest();
32 
33  virtual TTV_ErrorCode SendHttpRequest(const std::string& url,
34  const std::vector<HttpParam>& requestHeaders,
35  const uint8_t* requestBody,
36  size_t requestBodySize,
37  HttpRequestType httpReqType,
38  uint timeOutInSecs,
39  HttpRequestHeadersCallback headersCallback,
40  HttpRequestCallback responseCallback,
41  void* userData) override;
42 
43 private:
45 };
HttpRequestType
Definition: httprequest.h:25
Definition: httprequest.h:104
JSON (JavaScript Object Notation).
Definition: adsapi.h:16
GlobalJavaObjectReference mJavaInstance
Definition: java_httprequest.h:44
Definition: java_httprequest.h:27
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) override
JavaHttpRequest(JNIEnv *jEnv, jobject jObject)
Definition: java_utility.h:216