text stringlengths 14 100k | source stringclasses 1
value | repo stringclasses 810
values | language stringclasses 13
values |
|---|---|---|---|
<|fim_suffix|>PcreFree;
PCRE_EXP_DATA_DEFN void *(*PUBL(stack_malloc))(size_t) = LocalPcreMalloc;
PCRE_EXP_DATA_DEFN void (*PUBL(stack_free))(void *) = LocalPcreFree;
PCRE_EXP_DATA_DEFN int (*PUBL(callout))(PUBL(callout_block) *) = NULL;
PCRE_EXP_DATA_DEFN int (*PUBL(stack_guard))(void) = NULL;
#elif !defined VPC... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>/*************************************************
* Perl-Compatible Regular Expressions *
***************<|fim_suffix|>
for (i = 0; i < 256; i++)
{
int x = 0;
if (isspace(i)) x += ctype_space;
if (isalpha(i)) x += ctype_letter;
if (isdigit(i)) x += ctype_digit;
if (isxdigit(i)) x ... | fim | ClickHouse/ClickHouse | c |
<|fim_suffix|>on is called only for ANY or ANYCRLF. */
if (type == NLTYPE_ANYCRLF) switch(c)
{
case CHAR_LF: *lenptr = 1; return TRUE;
case CHAR_CR: *lenptr = (ptr < endptr - 1 && ptr[1] == CHAR_LF)? 2 : 1;
return TRUE;
default: return FALSE;
}
/* NLTYPE_ANY */
else switch(c)
{
#ifdef EBCD... | fim | ClickHouse/ClickHouse | c |
<|fim_suffix|>-----------------------------------
*/
#pragma warning( disable : 4244) // conversion from 'int' to 'unsigned short', possible loss of data
/* This file contains a private PCRE function that converts an ordinal
character value into a UTF8 string. */
#include "pcre_config.h"
#define COMPILE_PCRE8
#inc... | fim | ClickHouse/ClickHouse | c |
/*************************************************
* Perl-Compatible Regular Expressions *
*************************************************/
/* PCRE is a library of functions to support regular expressions whose syntax
and semantics are as close as possible to those of the Perl 5 language.
... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>/*************************************************
* Perl-Compatible Regular <|fim_suffix|>its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>/*************************************************
* Perl-Compatible Regular Expressions *
*************************************************/
/* PCRE is a library of functions to support regular expressions whose syntax
and semantics are as close as possible to those of the Perl 5 language.
... | fim | ClickHouse/ClickHouse | c |
<|fim_suffix|>"
#define STRING_Brahmi0 STR_B STR_r STR_a STR_h STR_m STR_i "\0"
#define STRING_Braille0 STR_B STR_r STR_a STR_i STR_l STR_l STR_e "\0"
#define STRING_Buginese0 STR_B STR_u STR_g STR_i STR_n STR_e STR_s STR_e "\0"
#define STRING_Buhid0 STR_B STR_u STR_h STR_i STR_d "\0"
#define STRING_C0 STR_C "\0"
#defi... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>/*************************************************
* Perl-Compatible Regular Expressions *
*************************************************/
/* PCRE is a library of functions to support regular expressions whose syntax
and semantics are as close as possible to those of the Perl 5 language.
... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>/*************************************************
* Perl-Compatible Regular Expressions *
*************************************************/
/* PCRE is a library of functions to support regular expressions whose syntax
and semantics are as close as possible to those of the Perl 5 language.
... | fim | ClickHouse/ClickHouse | c |
<|fim_suffix|>2069 Various "isolate"s
*/
case PT_PXGRAPH:
if ((PRIV(ucp_gentype)[prop->chartype] != ucp_Z &&
(PRIV(ucp_gentype)[prop->chartype] != ucp_C ||
(prop->chartype == ucp_Cf &&
c != 0x061c && c != 0x180e && (c < 0x2066 || c > 0x2069))
)) == ... | fim | ClickHouse/ClickHouse | c |
/*************************************************
* Unicode Property Table handler *
*************************************************/
#ifndef _UCP_H
# define _UCP_H
/* This file contains definitions of the property values that are returned by
the UCD access macros. New values that are added for ... | fim | ClickHouse/ClickHouse | c |
//
// Array.h
//
// Library: JSON
// Package: JSON
// Module: Array
//
// Definition of the Array class.
//
// Copyright (c) 2012, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef JSON_Array_INCLUDED
#define JSON_Array_INCLUDED
#include <sstream>... | fim | ClickHouse/ClickHouse | c |
<|fim_suffix|> virtual Poco::DynamicStruct asStruct() const;
/// Returns the result of the parser (an object, array or string),
/// empty Var if there is no result.
};
}
} // namespace Poco::JSON
#endif // JSON_Handler_INCLUDED
<|fim_prefix|>//
// Handler.h
//
// Library: JSON
// Package: JSON... | fim | ClickHouse/ClickHouse | c |
<|fim_suffix|>l defined on the command line. this symbol should not be defined on any project
// that uses this DLL. This way any other project whose source files include this file see
// JSON_API functions as being imported from a DLL, whereas this DLL sees symbols
// defined with this macro as being exported.
//
#i... | fim | ClickHouse/ClickHouse | c |
<|fim_suffix|>xception, Poco::Exception)
}
} // namespace Poco::JSON
#endif // JSON_JSONException_INCLUDED
<|fim_prefix|>//
// JSONException.h
//
// Library: JSON
// Package: JSON
// Module: JSONException
//
// Definition of the JSONException class.
//
// Copyright (c) 201<|fim_middle|>2, Applied Informatics Softw... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// Object.h
//
// Library: JSON
// Package: JSON
// Module: Object
//
// Definition of the Object class.
//
// Copyright (c) 2012, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef JSON_Object_INCLUDED
#define JSON_Object_INCLUDED
... | fim | ClickHouse/ClickHouse | c |
//
// ParseHandler.h
//
// Library: JSON
// Package: JSON
// Module: ParseHandler
//
// Definition of the ParseHandler class.
//
// Copyright (c) 2012, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef JSON_ParseHandler_INCLUDED
#define JSON_ParseHa... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// Parser.h
//
// Library: JSON
// Package: JSON
// Module: Parser
//
// Definition of the Parser class.
//
// Copyright (c) 2012, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef JSON_JSONParser_INCLUDED
#define JSON_JSONParser_IN... | fim | ClickHouse/ClickHouse | c |
<|fim_suffix|>turn Dynamic::Var();
}
}
} // namespace Poco::JSON
#endif // JSON_JSONParserImpl_INCLUDED
<|fim_prefix|>//
// Parser.h
//
// Library: JSON
// Package: JSON
// Module: ParserImpl
//
// Definition of the ParserImpl class.
//
// Copyright (c) 2012, Applied Informatics Software Engineering GmbH.
// a... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// PrintHandler.h
//
// Library: JSON
// Package: JSON
// Module: PrintHandler
//
// Definition of the PrintHandler class.
//
// Copyright (c) 2012, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef JSON_PrintHandler_INCLUDED
#defin... | fim | ClickHouse/ClickHouse | c |
<|fim_suffix|>f array is found, it is assigned to the
/// Object through the reference passed in. When the array can't be
/// found, the provided Object is emptied and returned.
Dynamic::Var find(const std::string & path) const;
/// Searches a value.
///
/// Example: "pe... | fim | ClickHouse/ClickHouse | c |
<|fim_suffix|>ng
/// the insertion order.
///
/// If JSON_ESCAPE_UNICODE is in options, all unicode characters will be escaped, otherwise
/// only the compulsory ones.
///
/// This is just a "shortcut" to stringify(any, out) with name indicating the function effect.
... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// Array.cpp
//
// Library: JSON
// Package: JSON
// Module: Array
//
// Copyright (c) 2012, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#include "Poco/JSON/Array.h"
#include "Poco/JSON/Object.h"
#include "Poco/JSON/Stringifier.h"
#in... | fim | ClickHouse/ClickHouse | cpp |
<|fim_suffix|>()
{
}
Dynamic::Var Handler::asVar() const
{
return Dynamic::Var();
}
Poco::DynamicStruct Handler::asStruct() const
{
return Poco::DynamicStruct();
}
} } // namespace Poco::JSON
<|fim_prefix|>//
// Handler.cpp
//
// Library: JSON
// Packag<|fim_middle|>e: JSON
// Module: Handler
//
// Copyright (... | fim | ClickHouse/ClickHouse | cpp |
<|fim_suffix|>MPLEMENT_EXCEPTION(JSONException, Exception, "JSON Exception")
} } // namespace Poco::JSON
<|fim_prefix|>//
// JSONException.cpp
//
// Library: JSON
// Package: JSON
// Module: JSONException
//
// Copyright (c) 2012, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License... | fim | ClickHouse/ClickHouse | cpp |
<|fim_prefix|>//
// Object.cpp
//
// Library: JSON
// Package: JSON
// Module: Object
//
// Copyright (c) 2012, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#include "Poco/JSON/Object.h"
#include <iostream>
using Poco::Dynamic::Var;
namespace Poco ... | fim | ClickHouse/ClickHouse | cpp |
<|fim_prefix|>//
// ParseHandler.cpp
//
// Library: JSON
// Package: JSON
// Module: ParseHandler
//
// Copyright (c) 2012, Applied Informatics Software Engin<|fim_suffix|>);
}
else if (parent.type() == typeid(Object::Ptr))
{
poco_assert_dbg(!_key.empty());
Object::Ptr obj = parent.extract<Object::Ptr>();
... | fim | ClickHouse/ClickHouse | cpp |
<|fim_prefix|>//
// Parser.cpp
//
// Library: JSON
// Package: JSON
// Module: Parser
//
// Copyright (c) 2012, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#include "Poco/JSO<|fim_suffix|>er);
}
} } // namespace Poco::JSON
<|fim_middle|>N/Parser.h"
... | fim | ClickHouse/ClickHouse | cpp |
<|fim_suffix|>tion(err);
}
}
}
bool ParserImpl::checkError()
{
const char* err = json_get_error(_pJSON);
if (err) throw Poco::JSON::JSONException(err);
return true;
}
} } // namespace Poco::JSON
<|fim_prefix|>//
// Parser.cpp
//
// Library: JSON
// Package: JSON
// Module: Parser
//
// Copyright (c) 2012, Ap... | fim | ClickHouse/ClickHouse | cpp |
<|fim_prefix|>//
// PrintHandler.cpp
//
// Library: JSON
// Package: JSON
// Module: PrintHandler
//
// Copyright (c) 2012, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#include "Poco/JSON/PrintHandler.h"
#include "Poco/JSON/Stringifier.h"
#include <io... | fim | ClickHouse/ClickHouse | cpp |
<|fim_suffix|>.match(*token, offset, matches) > 0)
{
if (firstOffset == -1)
{
firstOffset = static_cast<int>(matches[0].offset);
}
std::string num = token->substr(matches[1].offset, matches[1].length);
indexes.push_back(NumberParser::parse(num));
offset = static_cast<int>(matches[0].offs... | fim | ClickHouse/ClickHouse | cpp |
<|fim_suffix|>icode(escapeUnicode);
o->stringify(out, indent == 0 ? 0 : indent, step);
}
else if (any.type() == typeid(Array::Ptr))
{
Array::Ptr& a = const_cast<Array::Ptr&>(any.extract<Array::Ptr>());
a->setEscapeUnicode(escapeUnicode);
a->stringify(out, indent == 0 ? 0 : indent, step);
}
else if (any.isE... | fim | ClickHouse/ClickHouse | cpp |
#define _POSIX_C_SOURCE 200112L
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <limits.h>
#include <errno.h>
#include "pdjson.h"
#define JSON_FLAG_ERROR (1u << 0)
#define JSON_FLAG_STREAMING (1u << 1)
#define END_OF_SOURCE INT_MAX
// patched for poco 1.8.x (VS 2008)
#if defined(_MSC_VER) ... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>#ifndef PDJSON_H
#define PDJSON_H
#if defined(__cplusplus)
extern "C" {
#endif // __cplusplus
#include <stdio.h>
#if !defined(__cplusplus) && !defined(_MSC_VER) // for poco 1.8.x we must compile as C++
# if defined(__STDC_VERSION__) || (__STDC_VERSION__ >= 199901L)
# include <stdbool.h>
# ... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
<|fim_suffix|>tual void run() = 0;
/// Must be overridden by subclasses.
///
/// Handles the given request.
virtual bool authenticate();
/// Check authentication; returns true if okay, false if failed to authenticate.
/// The default implementation alway... | fim | ClickHouse/ClickHouse | c |
<|fim_suffix|>NS_HINT_NONE = 0,
#ifdef POCO_HAVE_ADDRINFO
DNS_HINT_AI_PASSIVE = AI_PASSIVE, /// Socket address will be used in bind() call
DNS_HINT_AI_CANONNAME = AI_CANONNAME, /// Return canonical name in first ai_canonname
DNS_HINT_AI_NUMERICHOST = AI_NUMERICHOST, /// Nodename must... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// DatagramSocket.h
//
// Library: Net
// Package: Sockets
// Module: DatagramSocket
//
// Definition of the DatagramSocket class.
//
// Copyright (c) 2005-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Net_DatagramSocket_I... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// DatagramSocketImpl.h
//
// Library: Net
// Package: Sockets
// Module: DatagramSocketImpl
//
// Definition of the DatagramSocketImpl class.
//
// Copyright (c) 2005-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Net_Data... | fim | ClickHouse/ClickHouse | c |
<|fim_suffix|>nated by a CR-LF sequence.
///
/// The response contains all response lines, separated by a newline
/// character, including the status code. The status code is returned.
/// If the response line does not contain a status code, 0 is returned.
int get();
///... | fim | ClickHouse/ClickHouse | c |
<|fim_suffix|>ath, const std::string & mediaType);
/// Creates the FilePartSource for the given
/// path and MIME type.
///
/// Throws an OpenFileException if the file cannot be opened.
FilePartSource(const std::string & path, const std::string & filename, const std::string & me... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// HTMLForm.h
//
// Library: Net
// Package: HTML
// Module: HTMLForm
//
// Definition of the HTMLForm class.
//
// Copyright (c) 2005-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Net_HTMLForm_INCLUDED
#define Net_HTMLFor... | fim | ClickHouse/ClickHouse | c |
<|fim_suffix|> /// Throws a NotAuthenticatedException if no authentication
/// information is contained in request.
/// Throws a InvalidArgumentException if authentication scheme is
/// unknown or invalid.
void fromResponse(const HTTPResponse & response, const std::string & header = WW... | fim | ClickHouse/ClickHouse | c |
<|fim_suffix|>lting
/// string at the ':' delimiter.
private:
HTTPBasicCredentials(const HTTPBasicCredentials &);
HTTPBasicCredentials & operator=(const HTTPBasicCredentials &);
std::string _username;
std::string _password;
};
//
// inlines
//
inline c... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// HTTPBasicStreamBuf.h
//
// Library: Net
// Package: <|fim_suffix|>UDED
#include "Poco/BufferedStreamBuf.h"
#include "Poco/Net/Net.h"
namespace Poco
{
namespace Net
{
constexpr size_t HTTP_DEFAULT_BUFFER_SIZE = 8 * 1024;
typedef Poco::BasicBufferedStreamBuf<char, std::char_traits<char>> ... | fim | ClickHouse/ClickHouse | c |
<|fim_suffix|>utputStream();
bool isComplete() { return _buf.isComplete(); }
};
}
} // namespace Poco::Net
#endif // Net_HTTPChunkedStream_INCLUDED
<|fim_prefix|>//
// HTTPChunkedStream.h
//
// Library: Net
// Package: HTTP
// Module: HTTPChunkedStream
//
// Definition of the HTTPChunkedStream class.
... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// HTTPClientSession.h
//
// Library: Net
// Package: HTTPClient
// Module: HTTPClientSession
//
// Definition of the HTTPClientSession class.
//
// Copyright (c) 2005-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Net_HTTP... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// HTTPCookie.h
//
// Library: Net
// Package: HTTP
// Module: HTTPCookie
//
// Definition of the HTTPCookie class.
//
// Copyright (c) 2005-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Net_HTTPCookie_INCLUDED
#define Net... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// HTTPCredentials.h
//
// Library: Net
// Package: HTTP
// Module: HTTPCredentials
//
// Definition of the HTTPCredentials class.
//
// Copyright (c) 2011, Anton V. Yabchinskiy (arn at bestmx dot ru).
// Copyright (c) 2012, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX... | fim | ClickHouse/ClickHouse | c |
<|fim_suffix|>uthInfo(HTTPRequest & request);
/// Updates internal state and adds proxy authentication information to
/// the given HTTPRequest.
bool verifyAuthInfo(const HTTPRequest & request) const;
/// Verifies the digest authentication information in the given HTTPRequest
//... | fim | ClickHouse/ClickHouse | c |
<|fim_suffix|>S : public virtual std::ios
/// The base class for HTTPFixedLengthInputStream.
{
public:
HTTPFixedLengthIOS(HTTPSession & session, HTTPFixedLengthStreamBuf::ContentLength length, HTTPFixedLengthStreamBuf::openmode mode);
~HTTPFixedLengthIOS();
HTTPFixedLengthStreamBuf *... | fim | ClickHouse/ClickHouse | c |
<|fim_suffix|>tected:
HTTPHeaderStreamBuf _buf;
};
class Net_API HTTPHeaderInputStream : public HTTPHeaderIOS, public std::istream
/// This class is for internal use by HTTPSession only.
{
public:
HTTPHeaderInputStream(HTTPSession & session);
~HTTPHeaderInputStream();
}... | fim | ClickHouse/ClickHouse | c |
<|fim_suffix|>adFromDevice()
{
return _istr.get();
}
class Net_API HTTPResponseIOS : public virtual std::ios
{
public:
HTTPResponseIOS(std::istream & istr);
~HTTPResponseIOS();
HTTPResponseStreamBuf * rdbuf();
protected:
HTTPResponseStreamBuf _buf;
... | fim | ClickHouse/ClickHouse | c |
<|fim_suffix|>TTPMessage(const std::string & version);
/// Creates the HTTPMessage and sets
/// the version.
virtual ~HTTPMessage();
/// Destroys the HTTPMessage.
private:
HTTPMessage(const HTTPMessage &);
HTTPMessage & operator=(const HTTPMessage &);
std::... | fim | ClickHouse/ClickHouse | c |
//
// HTTPRequest.h
//
// Library: Net
// Package: HTTP
// Module: HTTPRequest
//
// Definition of the HTTPRequest class.
//
// Copyright (c) 2005-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Net_HTTPRequest_INCLUDED
#define Net_HTTPReque... | fim | ClickHouse/ClickHouse | c |
//
// HTTPRequestHandler.h
//
// Library: Net
// Package: HTTPServer
// Module: HTTPRequestHandler
//
// Definition of the HTTPRequestHandler class.
//
// Copyright (c) 2005-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Net_HTTPRequestHand... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// HTTPRequestHandlerFactory.h
//
// Library: Net
// Package: HTTPServer
// Module: HTTPRequestHandlerFactory
//
// Definition of the HTTPRequestHandlerFactory class.
//
// Copyright (c) 2005-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// HTTPResponse.h
//
// Library: Net
// Package: HTTP
// Module: HTTPResponse
//
// Definition of the HTTPResponse class.
//
// Copyright (c) 2005-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Net_HTTPResponse_INCLUDED
#de... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// HTTPServer.h
//
// Library: Net
// Package: HTTPServer
// Module: HTTPServer
//
// Definition of the HTTPServer class.
//
// Copyright (c) 2005-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Net_HTTPServer_INCLUDED
#defi... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// HTTPServerConnection.h
//
// Library: Net
// Package: HTTPServer
// Module: HTTPServerConnection
//
// Definition of the HTTPServerConnection class.
//
// Copyright (c) 2005-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// HTTPServerConnectionFactory.h
//
// Library: Net
// Package: HTTPServer
// Module: HTTPServerConnectionFactory
//
// Definition of the HTTPServerConnectionFactory class.
//
// Copyright (c) 2005-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier:... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// HTTPServerParams.h
//
// Library: Net
// Package: HTTPServer
// Module: HTTPServerParams
//
// Definition of the HTTPServerParams class.
//
// Copyright (c) 2005-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Net_HTTPSer... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// HTTPServerRequest.h
//
// Library: Net
// Package: HTTPServer
// Modul<|fim_suffix|>= 0;
/// Returns the client's address.
virtual const SocketAddress & serverAddress() const = 0;
/// Returns the server's address.
virtual const HTTPServerParams & serverParams() cons... | fim | ClickHouse/ClickHouse | c |
<|fim_suffix|>Net
#endif // Net_HTTPServerRequestImpl_INCLUDED
<|fim_prefix|>//
// HTTPServerRequestImpl.h
//
// Library: Net
// Package: HTTPServer
// Module: HTTPServerRequestImpl
//
// Definition of the HTTPServerRequestImpl class.
//
// Copyright (c) 2005-2006, Applied Informatics Software Engineering GmbH.
// a... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// HTTPServerResponse.h
//
// Library: Net
// Package: HTTPServer
// Module: HTTPServerResponse
//
// Definition of the HTTPServerResponse class.
//
// Copyright (c) 2005-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Net_H... | fim | ClickHouse/ClickHouse | c |
<|fim_suffix|>led after beginSend(), sendFile(), sendBuffer()
/// or redirect() has been called.
std::pair<std::ostream *, std::ostream *> beginSend();
/// Sends the response headers to the client
/// but do not finish headers with \r\n,
/// allowing to continue sending addition... | fim | ClickHouse/ClickHouse | c |
<|fim_suffix|>troys the HTTPServerSession.
bool hasMoreRequests();
/// Returns true if there are requests available.
bool canKeepAlive() const;
/// Returns true if the session can be kept alive.
SocketAddress clientAddress();
/// Returns the client's address.
... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// HTTPSession.h
//
// Library: Net
// Package: HTTP
// Module: HTTPSession
//
// Definition of the HTTPSession class.
//
// Copyright (c) 2005-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Net_HTTPSess<|fim_suffix|>nst St... | fim | ClickHouse/ClickHouse | c |
<|fim_suffix|>ring & username, const std::string & password);
/// Sets the username and password for proxy authorization (Basic auth only).
const std::string & proxyUsername() const;
/// Returns the username for proxy authorization.
const std::string & proxyPassword() const;
//... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// HTTPSessionInstantiator.h
//
// Library: Net
// Package: HTTPClient
// Module: HTTPSessionInstantiator
//
// Definition of the HTTPSessionInstantiator class.
//
// Copyright (c) 2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#if... | fim | ClickHouse/ClickHouse | c |
<|fim_suffix|> "Poco/Net/Net.h"
namespace Poco
{
namespace Net
{
class HTTPSession;
class Net_API HTTPStreamBuf : public HTTPBasicStreamBuf
/// This is the streambuf class used for reading and writing
/// HTTP message bodies.
{
public:
typedef HTTPBasicStreamBuf::openmode openmode;... | fim | ClickHouse/ClickHouse | c |
//
// HTTPStreamFactory.h
//
// Library: Net
// Package: HTTP
// Module: HTTPStreamFactory
//
// Definition of the HTTPStreamFactory class.
//
// Copyright (c) 2005-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Net_HTTPStreamFactory_INCLUD... | fim | ClickHouse/ClickHouse | c |
//
// HostEntry.h
//
// Library: Net
// Package: NetCore
// Module: HostEntry
//
// Definition of the HostEntry class.
//
// Copyright (c) 2005-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Net_HostEntry_INCLUDED
#define Net_HostEntry_INCL... | fim | ClickHouse/ClickHouse | c |
//
// IPAddress.h
//
// Library: Net
// Package: NetCore
// Module: IPAddress
//
// Definition of the IPAddress class.
//
// Copyright (c) 2005-2011, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Net_IPAddress_INCLUDED
#define Net_IPAddress_INCL... | fim | ClickHouse/ClickHouse | c |
<|fim_suffix|>cal() const;
bool isIPv4Compatible() const;
bool isIPv4Mapped() const;
bool isWellKnownMC() const;
bool isNodeLocalMC() const;
bool isLinkLocalMC() const;
bool isSiteLocalMC() const;
bool isOrgLocalMC() const;
... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// MediaType.h
//
// Library: Net
// Package: Messages
// Module: MediaType
//
// Definition of the MediaType class.
//
// Copyright (c) 2005-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Net_MediaType_INCLUDED
#define Net... | fim | ClickHouse/ClickHouse | c |
<|fim_suffix|>d.
///
/// For example, the string
/// multipart/mixed; boundary="MIME_boundary_01234567"
/// is split into the value
/// multipart/mixed
/// and the parameter
/// boundary -> MIME_boundary_01234567
static void splitParameters(
... | fim | ClickHouse/ClickHouse | c |
//
// MulticastSocket.h
//
// Library: Net
// Package: Sockets
// Module: MulticastSocket
//
// Definition of the MulticastSocket class.
//
// Copyright (c) 2005-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Net_MulticastSocket_INCLUDED
#d... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// MultipartReader.h
//
// Library: Net
// Package: Messages
// Module: MultipartReader
//
// Definition of the MultipartReader class.
//
// Copyright (c) 2005-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Net_MultipartRea... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// MultipartWriter.h
//
// Library: Net
// Package: Messages
// Module: MultipartWriter
//
// Definition of the MultipartWriter class.
//
// Copyright (c) 2005-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Id<|fim_suffix|>iter();
MultipartWriter(c... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// NameValueCollection.h
//
// Library: Net
// Package: Messages
// Module: NameValueCollection
//
// Definition of the NameValueCollection class.
//
// Copyright (c) 2005-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Net_... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// Net.h
//
// Library: Net
// Package: NetCore
// Module: Net
//
// Basic definitions for the Poco Net library.
// This file must be the first file included by every other Net
// header file.
//
// Copyright (c) 2005-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX... | fim | ClickHouse/ClickHouse | c |
<|fim_suffix|>ECLARE_EXCEPTION(Net_API, MultipartException, MessageException)
POCO_DECLARE_EXCEPTION(Net_API, HTTPException, NetException)
POCO_DECLARE_EXCEPTION(Net_API, NotAuthenticatedException, HTTPException)
POCO_DECLARE_EXCEPTION(Net_API, UnsupportedRedirectException, HTTPException)
POCO_DECLARE_E... | fim | ClickHouse/ClickHouse | c |
<|fim_suffix|>e supports IP.
bool supportsIPv4() const;
/// Returns true if the interface supports IPv4.
bool supportsIPv6() const;
/// Returns true if the interface supports IPv6.
bool supportsBroadcast() const;
/// Returns true if the interface supports broadcast.
... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// NullPartHandler.h
//
// Library: Net
// Package: Messa<|fim_suffix|> class.
//
// Copyright (c) 2005-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Net_NullPartHandler_INCLUDED
#define Net_NullPartHandler_INCLUDED
#incl... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// OAuth10Credentials.h
//
// Library: Net
// Package: OAuth
// Module: OAuth10Credentials
//
// Definition of the OAuth10Credentials class.
//
// Copyright (c) 2014, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Net_OAuth10Crede... | fim | ClickHouse/ClickHouse | c |
<|fim_suffix|>ator=(const OAuth20Credentials &);
std::string _bearerToken;
std::string _scheme;
};
//
// inlines
//
inline const std::string & OAuth20Credentials::getBearerToken() const
{
return _bearerToken;
}
inline const std::string & OAuth20Credentials::g... | fim | ClickHouse/ClickHouse | c |
<|fim_suffix|>ceptor.
{
try
{
if (_pReactor)
{
_pReactor->removeEventHandler(
_socket, Poco::Observer<ParallelSocketAcceptor, ReadableNotification>(*this, &ParallelSocketAcceptor::onAccept));
}
... | fim | ClickHouse/ClickHouse | c |
<|fim_suffix|>"Poco/Thread.h"
using Poco::AutoPtr;
using Poco::NObserver;
using Poco::Thread;
using Poco::Net::ReadableNotification;
using Poco::Net::ServerSocket;
using Poco::Net::ShutdownNotification;
using Poco::Net::Socket;
using Poco::Net::SocketReactor;
using Poco::Net::StreamSocket;
namespace Poco
{
namespac... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// PartHandler.h
//
// Library: Net
// Package: Messages
// Module: PartHandler
//
// Definition of the PartHandler class.
//
// Copyright (c) 2005-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Net_PartHandler_INCLUDED
#de... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// PartSource.h
//
// Library: Net
// Package: Messages
// Module: PartSource
//
// Definition of the PartSource class.
//
// Copyright (c) 2005-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Net_PartSource_INCLUDED
#define... | fim | ClickHouse/ClickHouse | c |
<|fim_suffix|>curity reasons,
/// file is not saved under the real file name
/// (as specified by the user).
private:
std::string _filename;
std::string _path;
Poco::FileStream _fstr;
};
class PartStoreFactory
/// Parent factory class for part stores creation.
... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// PollSet.h
//
// Library: Net
// Package: Sockets
// Module: PollSet
//
// Definition of the PollSet class.
//
// Copyright (c) 2016, Applied Informatics Software Engineering GmbH.
// All rights reserved.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Net_PollSet_INCLUDED
#define Net_PollSet_IN... | fim | ClickHouse/ClickHouse | c |
//
// QuotedPrintableDecoder.h
//
// Library: Net
// Package: Messages
// Module: QuotedPrintableDecoder
//
// Definition of the QuotedPrintableDecoder class.
//
// Copyright (c) 2005-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Net_Quote... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// QuotedPrintableEncoder.h
//
// Library: Net
// Package: Messages
// Module: QuotedPrintableEncoder
//
// Definition of the QuotedPrintableEncoder class.
//
// Copyright (c) 2005-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#if... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// RawSocket.h
//
// Library: Net
// Package: Sockets
// Module: RawSocket
//
// Definition of the RawSocket class.
//
// Copyright (c) 2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Net_RawSocket_INCLUDED
#define Net_RawSo... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// RawSocketImpl.h
//
// Library: Net
// Package: Sockets
// Module: RawSocketImpl
//
// Definition of the RawSocketImpl class.
//
// Copyright (c) 200<|fim_suffix|>H.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Net_RawSocketImpl_INCLUDED
#define Net_RawSocketImpl_INCLUDED... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// RemoteSyslogChannel.h
//
// Library: Net
// Package: Logging
// Module: RemoteSyslogChannel
//
// Definition of the RemoteSyslogChannel class.
//
// Copyright (c) 2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Net_Remote... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
<|fim_suffix|>le line of text containing a syslog message
/// and sends it down the filter chain.
void enqueueMessage(const std::string & messageText, const Poco::Net::SocketAddress & senderAddress);
/// Enqueues a single line of text containing a syslog message
/// for... | fim | ClickHouse/ClickHouse | c |
<|fim_suffix|> /// socket option.
///
/// If reusePort is true, sets the SO_REUSEPORT
/// socket option.
///
/// The given address must be an IPv6 address. The
/// IPPROTO_IPV6/IPV6_V6ONLY option is set on the socket
/// according to the ipV6Only parameter.
... | fim | ClickHouse/ClickHouse | c |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.