libzypp  17.36.3
UrlResolverPlugin.h
Go to the documentation of this file.
1 /*---------------------------------------------------------------------\
2 | ____ _ __ __ ___ |
3 | |__ / \ / / . \ . \ |
4 | / / \ V /| _/ _/ |
5 | / /__ | | | | | | |
6 | /_____||_| |_| |_| |
7 | |
8 \---------------------------------------------------------------------*/
12 #ifndef ZYPP_MEDIA_URLRESOLVERPLUGIN_H
13 #define ZYPP_MEDIA_URLRESOLVERPLUGIN_H
14 
15 #include <iosfwd>
16 #include <map>
17 #include <string>
18 
19 #include <zypp-core/Globals.h>
20 #include <zypp/base/PtrTypes.h>
21 #include <zypp/Url.h>
22 #include <zypp/PathInfo.h>
24 namespace zypp
25 {
26  namespace media
28  {
29 
30  // openSUSE/libzypp#560: Keep it public while foreign test depend on it.
32  {
33  friend std::ostream & operator<<( std::ostream & str, const UrlResolverPlugin & obj );
34 
35  public:
36 
37  struct Impl;
38 
39  using HeaderList = std::multimap<std::string, std::string>;
40 
48  static Url resolveUrl(const Url &url, HeaderList &headers);
49 
50  public:
53 
54  private:
55 
58 
61  };
63 
65  std::ostream & operator<<( std::ostream & str, const UrlResolverPlugin & obj );
66 
68  } // namespace media
71 } // namespace zypp
73 #endif // ZYPP_MEDIA_URLRESOLVERPLUGIN_H
std::ostream & operator<<(std::ostream &str, const MediaHandler &obj)
String related utilities and Regular expression matching.
Provides API related macros.
const Arch Arch_armv7hnl Arch_armv7nhl ZYPP_API
Definition: ResTraits.h:93
UrlResolverPlugin implementation.
RW_pointer< Impl > _pimpl
Pointer to implementation.
std::multimap< std::string, std::string > HeaderList
Easy-to use interface to the ZYPP dependency resolver.
Definition: Application.cc:19
Url manipulation class.
Definition: Url.h:92