Open Inventor Release 2024.2.0
 
Loading...
Searching...
No Matches
HTTPHeaders.h
1/*=======================================================================
2*** THE CONTENT OF THIS WORK IS PROPRIETARY TO FEI S.A.S, (FEI S.A.S.), ***
3*** AND IS DISTRIBUTED UNDER A LICENSE AGREEMENT. ***
4*** ***
5*** REPRODUCTION, DISCLOSURE, OR USE, IN WHOLE OR IN PART, OTHER THAN AS ***
6*** SPECIFIED IN THE LICENSE ARE NOT TO BE UNDERTAKEN EXCEPT WITH PRIOR ***
7*** WRITTEN AUTHORIZATION OF FEI S.A.S. ***
8*** ***
9*** RESTRICTED RIGHTS LEGEND ***
10*** USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT OF THE CONTENT OF THIS ***
11*** WORK OR RELATED DOCUMENTATION IS SUBJECT TO RESTRICTIONS AS SET FORTH IN ***
12*** SUBPARAGRAPH (C)(1) OF THE COMMERCIAL COMPUTER SOFTWARE RESTRICTED RIGHT ***
13*** CLAUSE AT FAR 52.227-19 OR SUBPARAGRAPH (C)(1)(II) OF THE RIGHTS IN ***
14*** TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 52.227-7013. ***
15*** ***
16*** COPYRIGHT (C) 1996-2020 BY FEI S.A.S, ***
17*** BORDEAUX, FRANCE ***
18*** ALL RIGHTS RESERVED ***
19**=======================================================================*/
20
21#pragma once
22
23#include <Inventor/sys/port.h>
24#include <RemoteViz/Rendering/LibHelper.h>
25
26#include <memory>
27#include <string>
28
29namespace RemoteViz
30{
31 namespace Rendering
32 {
33 class HTTPHeadersImpl;
34
48 class RENDERSERVICE_API HTTPHeaders
49 {
50 public:
51
56
61
66
71
80 void add(const std::string& name, const std::string& value);
81
87 void remove(const std::string& name);
88
92 void clear();
93
99 size_t count() const;
100
108 bool exists(const std::string& name) const;
109
117 const std::string& getValue(const std::string& name) const;
118
126 const std::string& getNameAt(size_t index) const;
127
128 private:
131 std::shared_ptr<HTTPHeadersImpl> getImpl() const;
134 private:
136 std::shared_ptr<HTTPHeadersImpl> pImpl;
137 };
138
139 }
140}
<a href="IconLegend.html"><img src="extRV.gif" alt="RemoteViz" border="0"></a>
Definition HTTPHeaders.h:49
size_t count() const
Gets the number of HTTP headers.
void remove(const std::string &name)
Removes the header value under the given name.
HTTPHeaders(const HTTPHeaders &obj)
Copy constructor.
bool exists(const std::string &name) const
Determines if the headers collection contains a header of the specified name, with any value.
void clear()
Removes all headers.
void add(const std::string &name, const std::string &value)
Adds the given header value under the given name.
HTTPHeaders()
Creates an empty object.
const std::string & getNameAt(size_t index) const
Retrieves the header name from a collection index.
const std::string & getValue(const std::string &name) const
Retrieves the value of a given header.
HTTPHeaders & operator=(const HTTPHeaders &obj)
Copy assignment operator.