[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/QuantStack/git2cpp/main/src/wasm/scope.cpp [Back]  [Original]

#include "scope.hpp"

#ifdef EMSCRIPTEN
#    include "transport.hpp"
#endif

wasm_http_transport_scope::wasm_http_transport_scope()
{
#ifdef EMSCRIPTEN
    git_transport_register("http", create_wasm_http_transport, nullptr);
    git_transport_register("https", create_wasm_http_transport, nullptr);
#endif
}

wasm_http_transport_scope::~wasm_http_transport_scope()
{
#ifdef EMSCRIPTEN
    git_transport_unregister("http");
    git_transport_unregister("https");
#endif
}

Web Proxy Viewer  |  New URL  |  Original Page