This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ npm run test | |
> llhttp@2.2.0 test /Users/deargueta/code/oss/llhttp | |
> npm run mocha && npm run lint | |
> llhttp@2.2.0 mocha /Users/deargueta/code/oss/llhttp | |
> mocha --timeout=10000 -r ts-node/register/type-check --reporter progress test/*-test.ts | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http_filters: | |
- name: envoy.filters.http.lua | |
typed_config: | |
"@type": type.googleapis.com/envoy.extensions.filters.http.lua.v3.Lua | |
inline_code: ' | |
function envoy_on_request(request_handle) | |
request_handle:respond( | |
{[":status"] = "200"}, | |
"hello world") | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void FilterManagerImpl::addReadFilter(ReadFilterSharedPtr filter) { | |
ASSERT(connection_.state() == Connection::State::Open); | |
ActiveReadFilterPtr new_filter(new ActiveReadFilter{*this, filter}); | |
filter->initializeReadFilterCallbacks(*new_filter); | |
new_filter->moveIntoListBack(std::move(new_filter), upstream_filters_); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from collections import OrderedDict, Counter | |
import matplotlib.pylab as plt | |
def general_percentage_graph(data, xaxis=None, yaxis=None, filename=None) -> None: | |
plt.clf() | |
thresholds = Counter(data) | |
sorted_map = OrderedDict(sorted(thresholds.items())) | |
lists = sorted_map.items() |