2 Copyright (C) 2011 Samsung Electronics
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 Boston, MA 02110-1301, USA.
22 * @brief Describes the network API.
35 * Sets the given proxy URI to network backend.
37 * @param proxy URI to set
39 EAPI void ewk_network_proxy_uri_set(const char *proxy);
42 * Gets the proxy URI from the network backend.
44 * The returned string should be freed by eina_stringshare_del() after use.
46 * @return current proxy URI or @c 0 if it's not set
48 EAPI const char *ewk_network_proxy_uri_get(void);
51 * Sets if network backend is online or not.
53 * @param online @c EINA_FALSE if network is disconnected
55 EAPI void ewk_network_state_notifier_online_set(Eina_Bool online);
57 EAPI void ewk_network_session_requests_cancel(void);
59 EAPI void ewk_network_http_request_append(const char* name, const char* value);
63 #endif // ewk_network_h