blob: c71dddfd3543f31306b47e428cad61270b2c74d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#include "LibFetchFetcher.hpp"
#include "LibFetchRewindInputStream.hpp"
#include "fetch.h"
LibFetchFetcher::LibFetchFetcher( )
{
// TODO: connection pool parameters from instantiation
fetchConnectionCacheInit( 1024, 16 );
}
LibFetchFetcher::~LibFetchFetcher( )
{
fetchConnectionCacheClose( );
}
RewindInputStream *LibFetchFetcher::fetch( const URL url )
{
LibFetchRewindInputStream *s = new LibFetchRewindInputStream( url );
return s;
}
REGISTER_MODULE( "libfetch_fetcher", 0, 0, Fetcher, LibFetchFetcher )
|