2020-06-18 08:07:20 +03:00
|
|
|
/*
|
|
|
|
* Copyright 2020 Haiku, Inc. All rights reserved.
|
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*
|
|
|
|
* Authors:
|
|
|
|
* Leorize, leorize+oss@disroot.org
|
|
|
|
*
|
|
|
|
* Corresponds to:
|
2021-01-29 12:56:28 +03:00
|
|
|
* headers/private/netservices/UrlProtocolRoster.h hrev54923
|
|
|
|
* src/kits/network/libnetservices/UrlProtocolRoster.cpp hrev54923
|
2020-06-18 08:07:20 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
\file UrlProtocolRoster.h
|
2021-01-29 12:56:28 +03:00
|
|
|
\ingroup netservices
|
2020-06-18 08:07:20 +03:00
|
|
|
\brief Provides the BUrlProtocolRoster interface.
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
2021-01-29 12:56:28 +03:00
|
|
|
\class BPrivate::Network::BUrlProtocolRoster
|
|
|
|
\ingroup netservices
|
2020-06-18 08:07:20 +03:00
|
|
|
\brief Interfaces for protocol-agnostic operations.
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
\fn static BUrlRequest* BUrlProtocolRoster::MakeRequest(const BUrl& url,
|
2020-07-25 07:45:42 +03:00
|
|
|
BDataIO* output, BUrlProtocolListener* listener = NULL,
|
|
|
|
BUrlContext* context = NULL)
|
2020-06-18 08:07:20 +03:00
|
|
|
\brief Create a BUrlRequest that can handle the given BUrl
|
|
|
|
|
|
|
|
\param url The URL to create a request for
|
2020-07-25 07:45:42 +03:00
|
|
|
\param output The BDataIO to output to
|
2020-06-18 08:07:20 +03:00
|
|
|
\param listener The BUrlProtocolListener to be registered with the created
|
|
|
|
BUrlRequest, can be \c NULL
|
|
|
|
\param context The BUrlContext to be registered with the created
|
|
|
|
BUrlRequest, can be \c NULL
|
|
|
|
|
|
|
|
\returns A pointer to the BUrlRequest that can handle the given BUrl.
|
|
|
|
\c NULL will be returned if there aren't any BUrlRequest that can
|
|
|
|
handle the given protocol or if memory couldn't be allocated.
|
|
|
|
*/
|