• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# nghttp2 - HTTP/2 C Library
2
3# Copyright (c) 2012 Tatsuhiro Tsujikawa
4
5# Permission is hereby granted, free of charge, to any person obtaining
6# a copy of this software and associated documentation files (the
7# "Software"), to deal in the Software without restriction, including
8# without limitation the rights to use, copy, modify, merge, publish,
9# distribute, sublicense, and/or sell copies of the Software, and to
10# permit persons to whom the Software is furnished to do so, subject to
11# the following conditions:
12
13# The above copyright notice and this permission notice shall be
14# included in all copies or substantial portions of the Software.
15
16# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
24man_MANS = nghttp.1 nghttpd.1 nghttpx.1 h2load.1
25
26APIDOCS= \
27	macros.rst \
28	enums.rst \
29	types.rst \
30	nghttp2_check_authority.rst \
31	nghttp2_check_header_name.rst \
32	nghttp2_check_header_value.rst \
33	nghttp2_check_header_value_rfc9113.rst \
34	nghttp2_check_method.rst \
35	nghttp2_check_path.rst \
36	nghttp2_extpri_parse_priority.rst \
37	nghttp2_hd_deflate_bound.rst \
38	nghttp2_hd_deflate_change_table_size.rst \
39	nghttp2_hd_deflate_del.rst \
40	nghttp2_hd_deflate_get_dynamic_table_size.rst \
41	nghttp2_hd_deflate_get_max_dynamic_table_size.rst \
42	nghttp2_hd_deflate_get_num_table_entries.rst \
43	nghttp2_hd_deflate_get_table_entry.rst \
44	nghttp2_hd_deflate_hd.rst \
45	nghttp2_hd_deflate_hd2.rst \
46	nghttp2_hd_deflate_hd_vec.rst \
47	nghttp2_hd_deflate_hd_vec2.rst \
48	nghttp2_hd_deflate_new.rst \
49	nghttp2_hd_deflate_new2.rst \
50	nghttp2_hd_inflate_change_table_size.rst \
51	nghttp2_hd_inflate_del.rst \
52	nghttp2_hd_inflate_end_headers.rst \
53	nghttp2_hd_inflate_get_dynamic_table_size.rst \
54	nghttp2_hd_inflate_get_max_dynamic_table_size.rst \
55	nghttp2_hd_inflate_get_num_table_entries.rst \
56	nghttp2_hd_inflate_get_table_entry.rst \
57	nghttp2_hd_inflate_hd.rst \
58	nghttp2_hd_inflate_hd2.rst \
59	nghttp2_hd_inflate_hd3.rst \
60	nghttp2_hd_inflate_new.rst \
61	nghttp2_hd_inflate_new2.rst \
62	nghttp2_http2_strerror.rst \
63	nghttp2_is_fatal.rst \
64	nghttp2_nv_compare_name.rst \
65	nghttp2_option_del.rst \
66	nghttp2_option_new.rst \
67	nghttp2_option_set_builtin_recv_extension_type.rst \
68	nghttp2_option_set_max_deflate_dynamic_table_size.rst \
69	nghttp2_option_set_max_reserved_remote_streams.rst \
70	nghttp2_option_set_max_send_header_block_length.rst \
71	nghttp2_option_set_no_auto_ping_ack.rst \
72	nghttp2_option_set_no_auto_window_update.rst \
73	nghttp2_option_set_no_closed_streams.rst \
74	nghttp2_option_set_no_http_messaging.rst \
75	nghttp2_option_set_no_recv_client_magic.rst \
76	nghttp2_option_set_no_rfc9113_leading_and_trailing_ws_validation.rst \
77	nghttp2_option_set_peer_max_concurrent_streams.rst \
78	nghttp2_option_set_server_fallback_rfc7540_priorities.rst \
79	nghttp2_option_set_user_recv_extension_type.rst \
80	nghttp2_option_set_max_continuations.rst \
81	nghttp2_option_set_max_outbound_ack.rst \
82	nghttp2_option_set_max_settings.rst \
83	nghttp2_option_set_stream_reset_rate_limit.rst \
84	nghttp2_pack_settings_payload.rst \
85	nghttp2_pack_settings_payload2.rst \
86	nghttp2_priority_spec_check_default.rst \
87	nghttp2_priority_spec_default_init.rst \
88	nghttp2_priority_spec_init.rst \
89	nghttp2_rcbuf_decref.rst \
90	nghttp2_rcbuf_get_buf.rst \
91	nghttp2_rcbuf_incref.rst \
92	nghttp2_rcbuf_is_static.rst \
93	nghttp2_select_next_protocol.rst \
94	nghttp2_select_alpn.rst \
95	nghttp2_session_callbacks_del.rst \
96	nghttp2_session_callbacks_new.rst \
97	nghttp2_session_callbacks_set_before_frame_send_callback.rst \
98	nghttp2_session_callbacks_set_data_source_read_length_callback.rst \
99	nghttp2_session_callbacks_set_data_source_read_length_callback2.rst \
100	nghttp2_session_callbacks_set_error_callback.rst \
101	nghttp2_session_callbacks_set_error_callback2.rst \
102	nghttp2_session_callbacks_set_on_begin_frame_callback.rst \
103	nghttp2_session_callbacks_set_on_begin_headers_callback.rst \
104	nghttp2_session_callbacks_set_on_data_chunk_recv_callback.rst \
105	nghttp2_session_callbacks_set_on_extension_chunk_recv_callback.rst \
106	nghttp2_session_callbacks_set_on_frame_not_send_callback.rst \
107	nghttp2_session_callbacks_set_on_frame_recv_callback.rst \
108	nghttp2_session_callbacks_set_on_frame_send_callback.rst \
109	nghttp2_session_callbacks_set_on_header_callback.rst \
110	nghttp2_session_callbacks_set_on_header_callback2.rst \
111	nghttp2_session_callbacks_set_on_invalid_frame_recv_callback.rst \
112	nghttp2_session_callbacks_set_on_invalid_header_callback.rst \
113	nghttp2_session_callbacks_set_on_invalid_header_callback2.rst \
114	nghttp2_session_callbacks_set_on_stream_close_callback.rst \
115	nghttp2_session_callbacks_set_pack_extension_callback.rst \
116	nghttp2_session_callbacks_set_pack_extension_callback2.rst \
117	nghttp2_session_callbacks_set_recv_callback.rst \
118	nghttp2_session_callbacks_set_recv_callback2.rst \
119	nghttp2_session_callbacks_set_select_padding_callback.rst \
120	nghttp2_session_callbacks_set_select_padding_callback2.rst \
121	nghttp2_session_callbacks_set_send_callback.rst \
122	nghttp2_session_callbacks_set_send_callback2.rst \
123	nghttp2_session_callbacks_set_send_data_callback.rst \
124	nghttp2_session_callbacks_set_unpack_extension_callback.rst \
125	nghttp2_session_change_extpri_stream_priority.rst \
126	nghttp2_session_change_stream_priority.rst \
127	nghttp2_session_check_request_allowed.rst \
128	nghttp2_session_check_server_session.rst \
129	nghttp2_session_client_new.rst \
130	nghttp2_session_client_new2.rst \
131	nghttp2_session_client_new3.rst \
132	nghttp2_session_consume.rst \
133	nghttp2_session_consume_connection.rst \
134	nghttp2_session_consume_stream.rst \
135	nghttp2_session_create_idle_stream.rst \
136	nghttp2_session_del.rst \
137	nghttp2_session_find_stream.rst \
138	nghttp2_session_get_effective_local_window_size.rst \
139	nghttp2_session_get_effective_recv_data_length.rst \
140	nghttp2_session_get_extpri_stream_priority.rst \
141	nghttp2_session_get_hd_deflate_dynamic_table_size.rst \
142	nghttp2_session_get_hd_inflate_dynamic_table_size.rst \
143	nghttp2_session_get_last_proc_stream_id.rst \
144	nghttp2_session_get_local_settings.rst \
145	nghttp2_session_get_local_window_size.rst \
146	nghttp2_session_get_next_stream_id.rst \
147	nghttp2_session_get_outbound_queue_size.rst \
148	nghttp2_session_get_remote_settings.rst \
149	nghttp2_session_get_remote_window_size.rst \
150	nghttp2_session_get_root_stream.rst \
151	nghttp2_session_get_stream_effective_local_window_size.rst \
152	nghttp2_session_get_stream_effective_recv_data_length.rst \
153	nghttp2_session_get_stream_local_close.rst \
154	nghttp2_session_get_stream_local_window_size.rst \
155	nghttp2_session_get_stream_remote_close.rst \
156	nghttp2_session_get_stream_remote_window_size.rst \
157	nghttp2_session_get_stream_user_data.rst \
158	nghttp2_session_mem_recv.rst \
159	nghttp2_session_mem_recv2.rst \
160	nghttp2_session_mem_send.rst \
161	nghttp2_session_mem_send2.rst \
162	nghttp2_session_recv.rst \
163	nghttp2_session_resume_data.rst \
164	nghttp2_session_send.rst \
165	nghttp2_session_server_new.rst \
166	nghttp2_session_server_new2.rst \
167	nghttp2_session_server_new3.rst \
168	nghttp2_session_set_local_window_size.rst \
169	nghttp2_session_set_next_stream_id.rst \
170	nghttp2_session_set_stream_user_data.rst \
171	nghttp2_session_set_user_data.rst \
172	nghttp2_session_terminate_session.rst \
173	nghttp2_session_terminate_session2.rst \
174	nghttp2_session_upgrade.rst \
175	nghttp2_session_upgrade2.rst \
176	nghttp2_session_want_read.rst \
177	nghttp2_session_want_write.rst \
178	nghttp2_set_debug_vprintf_callback.rst \
179	nghttp2_stream_get_first_child.rst \
180	nghttp2_stream_get_next_sibling.rst \
181	nghttp2_stream_get_parent.rst \
182	nghttp2_stream_get_previous_sibling.rst \
183	nghttp2_stream_get_state.rst \
184	nghttp2_stream_get_sum_dependency_weight.rst \
185	nghttp2_stream_get_weight.rst \
186	nghttp2_strerror.rst \
187	nghttp2_submit_altsvc.rst \
188	nghttp2_submit_data.rst \
189	nghttp2_submit_data2.rst \
190	nghttp2_submit_extension.rst \
191	nghttp2_submit_goaway.rst \
192	nghttp2_submit_headers.rst \
193	nghttp2_submit_origin.rst \
194	nghttp2_submit_ping.rst \
195	nghttp2_submit_priority.rst \
196	nghttp2_submit_priority_update.rst \
197	nghttp2_submit_push_promise.rst \
198	nghttp2_submit_request.rst \
199	nghttp2_submit_request2.rst \
200	nghttp2_submit_response.rst \
201	nghttp2_submit_response2.rst \
202	nghttp2_submit_rst_stream.rst \
203	nghttp2_submit_settings.rst \
204	nghttp2_submit_shutdown_notice.rst \
205	nghttp2_submit_trailer.rst \
206	nghttp2_submit_window_update.rst \
207	nghttp2_version.rst
208
209RST_FILES = \
210	README.rst \
211	programmers-guide.rst \
212	nghttp.1.rst \
213	nghttpd.1.rst \
214	nghttpx.1.rst \
215	h2load.1.rst
216
217EXTRA_DIST = \
218	CMakeLists.txt \
219	mkapiref.py \
220	$(RST_FILES) \
221	$(APIDOCS) \
222	sources/index.rst \
223	sources/tutorial-client.rst \
224	sources/tutorial-server.rst \
225	sources/tutorial-hpack.rst \
226	sources/nghttpx-howto.rst \
227	sources/h2load-howto.rst \
228	sources/building-android-binary.rst \
229	sources/contribute.rst \
230	_exts/rubydomain/LICENSE.rubydomain \
231	_exts/rubydomain/__init__.py \
232	_exts/rubydomain/rubydomain.py \
233	$(man_MANS) \
234	bash_completion/nghttp \
235	bash_completion/nghttpd \
236	bash_completion/nghttpx \
237	bash_completion/h2load
238
239# Makefile for Sphinx documentation
240#
241
242# You can set these variables from the command line.
243SPHINXOPTS    =
244SPHINXBUILD   ?= sphinx-build
245PAPER         =
246BUILDDIR      = manual
247
248# Internal variables.
249PAPEROPT_a4     = -D latex_paper_size=a4
250PAPEROPT_letter = -D latex_paper_size=letter
251ALLSPHINXOPTS   = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
252
253.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest
254
255help:
256	@echo "Please use \`make <target>' where <target> is one of"
257	@echo "  html       to make standalone HTML files"
258	@echo "  dirhtml    to make HTML files named index.html in directories"
259	@echo "  singlehtml to make a single large HTML file"
260	@echo "  pickle     to make pickle files"
261	@echo "  json       to make JSON files"
262	@echo "  htmlhelp   to make HTML files and a HTML help project"
263	@echo "  qthelp     to make HTML files and a qthelp project"
264	@echo "  devhelp    to make HTML files and a Devhelp project"
265	@echo "  epub       to make an epub"
266	@echo "  latex      to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
267	@echo "  latexpdf   to make LaTeX files and run them through pdflatex"
268	@echo "  text       to make text files"
269	@echo "  man        to make manual pages"
270	@echo "  changes    to make an overview of all changed/added/deprecated items"
271	@echo "  linkcheck  to check all external links for integrity"
272	@echo "  doctest    to run all doctests embedded in the documentation (if enabled)"
273
274apiref.rst: \
275	$(top_builddir)/lib/includes/nghttp2/nghttp2ver.h \
276	$(top_srcdir)/lib/includes/nghttp2/nghttp2.h
277	for i in $(RST_FILES); do [ -e $(builddir)/$$i ] || cp $(srcdir)/$$i $(builddir); done
278	$(PYTHON) $(top_srcdir)/doc/mkapiref.py \
279	apiref.rst macros.rst enums.rst types.rst . $^
280
281$(APIDOCS): apiref.rst
282
283clean-local:
284	if [ $(srcdir) != $(builddir) ]; then for i in $(RST_FILES); do rm -f $(builddir)/$$i; done fi
285	-rm -f apiref.rst
286	-rm -f $(APIDOCS)
287	-rm -rf $(BUILDDIR)/*
288
289html-local: apiref.rst
290	$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
291	@echo
292	@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
293
294dirhtml:
295	$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
296	@echo
297	@echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
298
299singlehtml:
300	$(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
301	@echo
302	@echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."
303
304pickle:
305	$(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
306	@echo
307	@echo "Build finished; now you can process the pickle files."
308
309json:
310	$(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
311	@echo
312	@echo "Build finished; now you can process the JSON files."
313
314htmlhelp:
315	$(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
316	@echo
317	@echo "Build finished; now you can run HTML Help Workshop with the" \
318	      ".hhp project file in $(BUILDDIR)/htmlhelp."
319
320qthelp:
321	$(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
322	@echo
323	@echo "Build finished; now you can run "qcollectiongenerator" with the" \
324	      ".qhcp project file in $(BUILDDIR)/qthelp, like this:"
325	@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/nghttp2.qhcp"
326	@echo "To view the help file:"
327	@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/nghttp2.qhc"
328
329devhelp:
330	$(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
331	@echo
332	@echo "Build finished."
333	@echo "To view the help file:"
334	@echo "# mkdir -p $$HOME/.local/share/devhelp/nghttp2"
335	@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/nghttp2"
336	@echo "# devhelp"
337
338epub:
339	$(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
340	@echo
341	@echo "Build finished. The epub file is in $(BUILDDIR)/epub."
342
343latex:
344	$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
345	@echo
346	@echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
347	@echo "Run \`make' in that directory to run these through (pdf)latex" \
348	      "(use \`make latexpdf' here to do that automatically)."
349
350latexpdf:
351	$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
352	@echo "Running LaTeX files through pdflatex..."
353	$(MAKE) -C $(BUILDDIR)/latex all-pdf
354	@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
355
356text:
357	$(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
358	@echo
359	@echo "Build finished. The text files are in $(BUILDDIR)/text."
360
361man: apiref.rst
362	$(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
363	@echo
364	@echo "Build finished. The manual pages are in $(BUILDDIR)/man."
365
366changes:
367	$(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
368	@echo
369	@echo "The overview file is in $(BUILDDIR)/changes."
370
371linkcheck:
372	$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
373	@echo
374	@echo "Link check complete; look for any errors in the above output " \
375	      "or in $(BUILDDIR)/linkcheck/output.txt."
376
377doctest:
378	$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
379	@echo "Testing of doctests in the sources finished, look at the " \
380	      "results in $(BUILDDIR)/doctest/output.txt."
381