DS3 C SDK  3.0.0
Provides access to the Spectra S3 API with C
ds3_net.h
Go to the documentation of this file.
1 /*
2  * ******************************************************************************
3  * Copyright 2014 Spectra Logic Corporation. All Rights Reserved.
4  * Licensed under the Apache License, Version 2.0 (the "License"). You may not use
5  * this file except in compliance with the License. A copy of the License is located at
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * or in the "license" file accompanying this file.
10  * This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
11  * CONDITIONS OF ANY KIND, either express or implied. See the License for the
12  * specific language governing permissions and limitations under the License.
13  * ****************************************************************************
14  */
15 
16 #ifndef __DS3_NET_H__
17 #define __DS3_NET_H__
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
23 #include "ds3.h"
24 #include "ds3_string_multimap.h"
25 
26 char* escape_url(const char* url);
27 char* escape_url_extended(const char* url, const char** delimiters, uint32_t num_delimiters);
28 char* escape_url_object_name(const char* url);
29 char* escape_url_range_header(const char* url);
30 
32  const ds3_client* client,
33  const ds3_request* _request,
34  void* read_user_struct,
35  size_t (*read_handler_func)(void*, size_t, size_t, void*),
36  void* write_user_struct,
37  size_t (*write_handler_func)(void*, size_t, size_t, void*),
38  ds3_string_multimap** return_headers);
39 
40 void net_cleanup(void);
41 
42 #ifdef __cplusplus
43 }
44 #endif
45 #endif
46 
char * escape_url_extended(const char *url, const char **delimiters, uint32_t num_delimiters)
Definition: ds3_net.c:75
void net_cleanup(void)
Definition: ds3_net.c:584
ds3_error * net_process_request(const ds3_client *client, const ds3_request *_request, void *read_user_struct, size_t(*read_handler_func)(void *, size_t, size_t, void *), void *write_user_struct, size_t(*write_handler_func)(void *, size_t, size_t, void *), ds3_string_multimap **return_headers)
Definition: ds3_net.c:374
char * escape_url_object_name(const char *url)
Definition: ds3_net.c:94
The public definitions for the Spectra S3 C SDK.
char * escape_url(const char *url)
Definition: ds3_net.c:67
char * escape_url_range_header(const char *url)
Definition: ds3_net.c:100