OSDN Git Service

initial files
[iptd/iPTd_R3.git] / src / Raym / URLConnection.h
1 //
2 // URLConnection.h
3 //
4
5 #pragma once
6
7 #include <Raym/Object.h>
8 #include <Raym/Data.h>
9 #include <Raym/URLRequest.h>
10 #include <Raym/URLResponse.h>
11 #include <Raym/Error.h>
12
13 namespace Raym
14 {
15
16 class URLConnection;
17
18 class URLConnectionDelegate
19 {
20 public:
21     virtual bool connectionShouldUseCredentialStorage(URLConnection *connection);
22 };
23
24 class URLConnection : public Object
25 {
26 protected:
27     URLConnection();
28     ~URLConnection();
29
30 public:
31     static URLConnection *alloc();
32     URLConnection *initWithRequest(URLRequest *request, URLConnectionDelegate *delegate);
33
34     virtual const char *className();
35
36     static Data *sendSynchronousRequest(URLRequest *request, URLResponse **response, Error **error);
37 };
38
39 } // Raym