OpendTect  7.0
Public Types | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
Network::HttpRequest Class Reference
Inheritance diagram for Network::HttpRequest:
[legend]

Public Types

enum  AccessType {
  Get , Put , Delete , Post ,
  Head
}
 

Public Member Functions

 HttpRequest (const char *url, AccessType)
 
 HttpRequest (const HttpRequest &)
 
HttpRequestcontentType (const BufferString &)
 
HttpRequestpayloadData (const DataBuffer &)
 
HttpRequestrawHeader (const char *key, const char *val)
 
void setContentType (const BufferString &)
 
void setPayloadData (const DataBuffer &)
 For post/put requests Data is copied. More...
 
void setRawHeader (const char *key, const char *val)
 
- Public Member Functions inherited from RefCount::Referenced
void addObserver (WeakPtrBase *obs)
 Not for normal use. May become private. More...
 
int nrRefs () const
 Only for expert use. More...
 
void ref () const
 
bool refIfReffed () const
 Don't use in production, for debugging. More...
 
void removeObserver (WeakPtrBase *obs)
 Not for normal use. May become private. More...
 
bool tryRef () const
 Not for normal use. May become private. More...
 
void unRef () const
 
void unRefNoDelete () const
 

Protected Member Functions

 ~HttpRequest ()
 
- Protected Member Functions inherited from RefCount::Referenced
 Referenced ()
 
 Referenced (const Referenced &)
 
virtual ~Referenced ()
 
Referencedoperator= (const Referenced &)
 

Private Member Functions

void fillRequest (QNetworkRequest &) const
 

Private Attributes

const AccessType accesstype_
 
BufferString contenttype_
 
QByteArray * payload_ = nullptr
 
IOPar rawheaders_
 
BufferString url_
 

Friends

class HttpRequestManager
 

Additional Inherited Members

- Static Public Member Functions inherited from RefCount::Referenced
static bool isSane (const Referenced *)
 

Detailed Description

Description of an HTTP request, including headers and post-data

<>

Member Enumeration Documentation

◆ AccessType

Enumerator
Get 
Put 
Delete 
Post 
Head 

Constructor & Destructor Documentation

◆ HttpRequest() [1/2]

Network::HttpRequest::HttpRequest ( const char *  url,
AccessType   
)

◆ HttpRequest() [2/2]

Network::HttpRequest::HttpRequest ( const HttpRequest )

◆ ~HttpRequest()

Network::HttpRequest::~HttpRequest ( )
protected

Member Function Documentation

◆ contentType()

HttpRequest& Network::HttpRequest::contentType ( const BufferString )

◆ fillRequest()

void Network::HttpRequest::fillRequest ( QNetworkRequest &  ) const
private

◆ payloadData()

HttpRequest& Network::HttpRequest::payloadData ( const DataBuffer )

◆ rawHeader()

HttpRequest& Network::HttpRequest::rawHeader ( const char *  key,
const char *  val 
)

◆ setContentType()

void Network::HttpRequest::setContentType ( const BufferString )

◆ setPayloadData()

void Network::HttpRequest::setPayloadData ( const DataBuffer )

For post/put requests Data is copied.

◆ setRawHeader()

void Network::HttpRequest::setRawHeader ( const char *  key,
const char *  val 
)

Friends And Related Function Documentation

◆ HttpRequestManager

friend class HttpRequestManager
friend

Member Data Documentation

◆ accesstype_

const AccessType Network::HttpRequest::accesstype_
private

◆ contenttype_

BufferString Network::HttpRequest::contenttype_
private

◆ payload_

QByteArray* Network::HttpRequest::payload_ = nullptr
private

◆ rawheaders_

IOPar Network::HttpRequest::rawheaders_
private

◆ url_

BufferString Network::HttpRequest::url_
private

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2024