Sha256: 2949e2c012d9076371990b11429be81dd93d9e181390d4db5ed6ad60cda93cf8

Contents?: true

Size: 1.09 KB

Versions: 20

Compression:

Stored size: 1.09 KB

Contents

/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
 *     Copyright 2020 Couchbase, Inc.
 *
 *   Licensed under the Apache License, Version 2.0 (the "License");
 *   you may not use this file except in compliance with the License.
 *   You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 *   Unless required by applicable law or agreed to in writing, software
 *   distributed under the License is distributed on an "AS IS" BASIS,
 *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *   See the License for the specific language governing permissions and
 *   limitations under the License.
 */

#pragma once

#include <service_type.hxx>

namespace couchbase::io
{
struct http_request {
    service_type type;
    std::string method;
    std::string path;
    std::map<std::string, std::string> headers;
    std::string body;
};

struct http_response {
    uint32_t status_code;
    std::string status_message;
    std::map<std::string, std::string> headers;
    std::string body;
};
} // namespace couchbase::io

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
couchbase-3.0.0-universal-darwin-19 ext/couchbase/io/http_message.hxx
couchbase-3.0.0 ext/couchbase/io/http_message.hxx
couchbase-3.0.0.beta.1-universal-darwin-19 ext/couchbase/io/http_message.hxx
couchbase-3.0.0.beta.1 ext/couchbase/io/http_message.hxx
couchbase-3.0.0.alpha.5-x86_64-linux ext/couchbase/io/http_message.hxx
couchbase-3.0.0.alpha.5-universal-darwin-19 ext/couchbase/io/http_message.hxx
couchbase-3.0.0.alpha.5-x86_64-darwin-19 ext/couchbase/io/http_message.hxx
couchbase-3.0.0.alpha.5 ext/couchbase/io/http_message.hxx
couchbase-3.0.0.alpha.4-x86_64-linux ext/couchbase/io/http_message.hxx
couchbase-3.0.0.alpha.4-x86_64-darwin-19 ext/couchbase/io/http_message.hxx
couchbase-3.0.0.alpha.4-universal-darwin-19 ext/couchbase/io/http_message.hxx
couchbase-3.0.0.alpha.4 ext/couchbase/io/http_message.hxx
couchbase-3.0.0.alpha.3-x86_64-linux ext/couchbase/io/http_message.hxx
couchbase-3.0.0.alpha.3-x86_64-darwin-19 ext/couchbase/io/http_message.hxx
couchbase-3.0.0.alpha.3-universal-darwin-19 ext/couchbase/io/http_message.hxx
couchbase-3.0.0.alpha.3 ext/couchbase/io/http_message.hxx
couchbase-3.0.0.alpha.2-x86_64-linux ext/couchbase/io/http_message.hxx
couchbase-3.0.0.alpha.2-x86_64-darwin-19 ext/couchbase/io/http_message.hxx
couchbase-3.0.0.alpha.2-universal-darwin-19 ext/couchbase/io/http_message.hxx
couchbase-3.0.0.alpha.2 ext/couchbase/io/http_message.hxx