Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
75 lines (56 loc) · 2.04 KB

File metadata and controls

75 lines (56 loc) · 2.04 KB
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
REBAR ?= $(shell which rebar3 2>/dev/null)
.PHONY: all compile test clean distclean dialyzer doc
all: compile
compile:
@${REBAR} compile
test: compile
@${REBAR} eunit
dialyzer: compile
@${REBAR} dialyzer
clean:
@${REBAR} clean
distclean: clean
@rm -rf _build
@rm -rf priv/*.so priv/*.dll
@git clean -fdx -e "*.plt"
doc:
@${REBAR} ex_doc
# QUIC-specific targets
quic-deps:
@echo "Vendoring QUIC dependencies..."
@test -d libs/ngtcp2 || git subtree add --prefix=libs/ngtcp2 https://github.com/ngtcp2/ngtcp2.git v1.18.0 --squash
@test -d libs/nghttp3 || git subtree add --prefix=libs/nghttp3 https://github.com/ngtcp2/nghttp3.git v1.9.0 --squash
quic-deps-update:
@echo "Updating QUIC dependencies..."
git subtree pull --prefix=libs/ngtcp2 https://github.com/ngtcp2/ngtcp2.git v1.18.0 --squash
git subtree pull --prefix=libs/nghttp3 https://github.com/ngtcp2/nghttp3.git v1.9.0 --squash
quic-clean:
@rm -rf _build/cmake
@rm -f priv/hackney_quic.so priv/hackney_quic.dll
# h2spec HTTP/2 compliance testing
H2SPEC_VERSION ?= 2.6.0
priv/h2spec:
@mkdir -p priv
@echo "Downloading h2spec v$(H2SPEC_VERSION)..."
@OS=$$(uname -s | tr '[:upper:]' '[:lower:]'); \
ARCH=$$(uname -m); \
if [ "$$ARCH" = "x86_64" ]; then ARCH="amd64"; fi; \
if [ "$$ARCH" = "aarch64" ] || [ "$$ARCH" = "arm64" ]; then \
if [ "$$OS" = "darwin" ]; then ARCH="amd64"; else ARCH="arm64"; fi; \
fi; \
curl -sL "https://github.com/summerwind/h2spec/releases/download/v$(H2SPEC_VERSION)/h2spec_$${OS}_$${ARCH}.tar.gz" | \
tar xz -C priv
download-h2spec: priv/h2spec
@echo "h2spec installed at priv/h2spec"
h2spec-test: priv/h2spec compile
@${REBAR} ct --suite=h2spec_SUITE
e2e-test: compile
@${REBAR} ct --suite=hackney_http2_e2e_SUITE
http3-e2e-test: compile
@${REBAR} ct --suite=hackney_http3_e2e_SUITE
all-e2e-test: compile
@${REBAR} ct --suite=hackney_http2_e2e_SUITE,hackney_http3_e2e_SUITE
http2-bench: compile
@${REBAR} as test compile
@erl -pa _build/test/lib/*/ebin -pa _build/test/lib/hackney/test -noshell \
-eval 'hackney_http2_machine_bench:run().' -s init stop
Morty Proxy This is a proxified and sanitized view of the page, visit original site.