1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- #pragma once
- #include <Text.h>
- namespace Network
- {
- namespace HTTP
- {
- class Answer
- {
- private:
- Framework::Text protocol;
- int statusNumber;
- Framework::Text statusText;
- Framework::Text date;
- Framework::Text contentType;
- Framework::Text header;
- Framework::Text data;
- int ref;
- public:
- __declspec( dllexport ) Answer( const char *answer );
- __declspec( dllexport ) const char *getContentType() const;
- __declspec( dllexport ) const char *getData() const;
- __declspec( dllexport ) int getStatusCode() const;
- __declspec( dllexport ) const char *getStatusText() const;
- __declspec( dllexport ) const char *getDate() const;
- __declspec( dllexport ) Answer *getThis();
- __declspec( dllexport ) Answer *release();
- };
- class PostRequest
- {
- private:
- Framework::Text path;
- Framework::Text host;
- Framework::Text contentType;
- Framework::Text data;
- unsigned short port;
- int ref;
- public:
- __declspec( dllexport ) PostRequest( const char *path, const char *host, const char *data, const char *contentType, unsigned short port );
- __declspec( dllexport ) Answer *execute() const;
- __declspec( dllexport ) PostRequest *getThis();
- __declspec( dllexport ) PostRequest *release();
- };
- }
- }
|