Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/site/bearer_token/bearer_token.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
namespace gcf = ::google::cloud::functions;

namespace {
/// A helper function to perform a HTTP GET request.
/// A helper function to perform an HTTP GET request.
gcf::HttpResponse HttpGet(std::string const& url,
std::string const& authorization_header);
} // namespace
Expand Down
38 changes: 20 additions & 18 deletions google/cloud/functions/framework.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,19 @@ FUNCTIONS_FRAMEWORK_CPP_INLINE_NAMESPACE_BEGIN
/**
* Runs function wrapped by @p handler.
*
* Starts a HTTP server at the address and listening endpoint described by
* Starts an HTTP server at the address and listening endpoint described by
* @p argv, invoking @p handler to handle any HTTP request.
*
* If @p handler wraps a function with the Cloud Event signature, then the
* incoming HTTP requests **MUST** conform to the Cloud Events [HTTP protocol
* binding specification][cloud-events-spec].
*
* @note
* When deploying code to Google Cloud Functions applications should **not** use
* this function directly. The buildpack will automatically create a `main()`
* and invoke `Run()` with the correct parameters. We recommend that application
* developers use this function only for local development and integration
* tests.
* When deploying code to Google Cloud Functions applications should **not**
* call this function directly. The buildpack will automatically create a
* `main()` and invoke `Run()` with the correct parameters. We recommend that
* application developers use this function only for local development and
* integration tests.
*
* @par Example
* @code
Expand All @@ -64,14 +64,15 @@ int Run(int argc, char const* const argv[], Function const& handler) noexcept;
*
* @deprecated Prefer using the overload consuming a `Function` object.
*
* Starts a HTTP server at the address and listening endpoint described by
* Starts an HTTP server at the address and listening endpoint described by
* @p argv, invoking @p handler to handle any HTTP request.
*
* When deploying code to Google Cloud Functions applications should **not** use
* this function directly. The buildpack will automatically create a `main()`
* and invoke `Run()` with the correct parameters. We recommend that application
* developers use this function only for local development and integration
* tests.
* @note
* When deploying code to Google Cloud Functions applications should **not**
* call this function directly. The buildpack will automatically create a
* `main()` and invoke `Run()` with the correct parameters. We recommend that
* application developers use this function only for local development and
* integration tests.
*
* @par Example
* @code
Expand All @@ -94,15 +95,16 @@ int Run(int argc, char const* const argv[], UserHttpFunction handler) noexcept;
*
* @deprecated Prefer using the overload consuming a `Function` object.
*
* Starts a HTTP server at the address and listening endpoint described by
* Starts an HTTP server at the address and listening endpoint described by
* @p argv, invoking @p handler to handle any HTTP request which *MUST* conform
* to the Cloud Events [HTTP protocol binding][cloud-events-spec].
*
* When deploying code to Google Cloud Functions applications should **not** use
* this function directly. The buildpack will automatically create a `main()`
* and invoke `Run()` with the correct parameters. We recommend that application
* developers use this function only for local development and integration
* tests.
* @note
* When deploying code to Google Cloud Functions applications should **not**
* call this function directly. The buildpack will automatically create a
* `main()` and invoke `Run()` with the correct parameters. We recommend that
* application developers use this function only for local development and
* integration tests.
*
* @par Example
* @code
Expand Down
4 changes: 2 additions & 2 deletions google/cloud/functions/http_request.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ namespace google::cloud::functions {
FUNCTIONS_FRAMEWORK_CPP_INLINE_NAMESPACE_BEGIN

/**
* Represents a HTTP request.
* Represents an HTTP request.
*
* Functions to handle HTTP requests receive an object of this class.
* Functions to handle HTTP requests receive an object of this type.
*/
class HttpRequest {
public:
Expand Down
4 changes: 2 additions & 2 deletions google/cloud/functions/http_response.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ namespace google::cloud::functions {
FUNCTIONS_FRAMEWORK_CPP_INLINE_NAMESPACE_BEGIN

/**
* Represents a HTTP request.
* Represents an HTTP response.
*
* Functions to handle HTTP requests receive an object of this class.
* Functions to handle HTTP requests return an object of this type.
*/
class HttpResponse {
public:
Expand Down