1
+ /*
2
+ ==============================================================================
3
+
4
+ This file is part of the JUCE library.
5
+ Copyright (c) 2020 - Raw Material Software Limited
6
+
7
+ JUCE is an open source library subject to commercial or open-source
8
+ licensing.
9
+
10
+ The code included in this file is provided under the terms of the ISC license
11
+ http://www.isc.org/downloads/software-support-policy/isc-license. Permission
12
+ To use, copy, modify, and/or distribute this software for any purpose with or
13
+ without fee is hereby granted provided that the above copyright notice and
14
+ this permission notice appear in all copies.
15
+
16
+ JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
17
+ EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
18
+ DISCLAIMED.
19
+
20
+ ==============================================================================
21
+ */
22
+
23
+ #ifdef JUCE_WASM
24
+ #include " ../../JUCE/modules/juce_core/network/juce_WebInputStream.h"
25
+
26
+ namespace juce {
27
+
28
+ WebInputStream::WebInputStream (const URL &url, const bool usePost) : pimpl() {}
29
+
30
+ WebInputStream::~WebInputStream () {}
31
+
32
+ WebInputStream &WebInputStream::withExtraHeaders (const String &extra) {
33
+ return *this ;
34
+ }
35
+ WebInputStream &WebInputStream::withCustomRequestCommand (const String &cmd) {
36
+ return *this ;
37
+ }
38
+ WebInputStream &WebInputStream::withConnectionTimeout (int t) { return *this ; }
39
+ WebInputStream &WebInputStream::withNumRedirectsToFollow (int num) {
40
+ return *this ;
41
+ }
42
+ StringPairArray WebInputStream::getRequestHeaders () const { return {}; }
43
+ StringPairArray WebInputStream::getResponseHeaders () { return {}; }
44
+ bool WebInputStream::isError () const { return false ; }
45
+ void WebInputStream::cancel () {}
46
+ bool WebInputStream::isExhausted () { return false ; }
47
+ int64 WebInputStream::getPosition () { return 0 ; }
48
+ int64 WebInputStream::getTotalLength () { return 0 ; }
49
+ int WebInputStream::read (void *buffer, int bytes) { return 0 ; }
50
+ bool WebInputStream::setPosition (int64 pos) { return false ; }
51
+ int WebInputStream::getStatusCode () { return 0 ; }
52
+ bool WebInputStream::connect (Listener *listener) { return false ; }
53
+
54
+ StringPairArray WebInputStream::parseHttpHeaders (const String &headerData) {
55
+ return {};
56
+ }
57
+
58
+ void WebInputStream::createHeadersAndPostData (const URL &aURL, String &headers,
59
+ MemoryBlock &data,
60
+ bool addParametersToBody) {}
61
+
62
+ class WebInputStream ::Pimpl {};
63
+
64
+ } // namespace juce
65
+ #endif
0 commit comments