debian/0000755000000000000000000000000011661724067007200 5ustar debian/control0000644000000000000000000000245111661721605010600 0ustar Source: ocaml-http Section: ocaml Priority: optional Maintainer: Debian OCaml Maintainers Build-Depends: debhelper (>= 8), cdbs, dh-ocaml (>= 0.9.6~), ocaml-nox (>= 3.11.1-3~), camlp4, ocaml-findlib, libpcre-ocaml-dev, libocamlnet-ocaml-dev (>= 2.2.9-6) Standards-Version: 3.9.2 Vcs-Git: git://git.debian.org/git/pkg-ocaml-maint/packages/ocaml-http.git Vcs-Browser: http://git.debian.org/?p=pkg-ocaml-maint/packages/ocaml-http.git Homepage: http://ocaml-http.forge.ocamlcore.org/ Package: libhttp-ocaml-dev Architecture: any Depends: ${ocaml:Depends}, ${shlibs:Depends}, ${misc:Depends} Suggests: ocaml-findlib Description: OCaml library for writing HTTP servers OCaml HTTP is a library for the Objective Caml programming language, used to build simple HTTP servers, largely inspired to Perl's HTTP::Daemon module. . In order to implement an HTTP servers the programmer has to provide a daemon specification which contains, among other parameters, a callback function invoked by OCaml HTTP on well formed HTTP requests received. HTTP responses could be sent over an out_channel connected with client socket, accessible from the callback. . The library contains also facility functions that helps in creating well formed HTTP responses and a tiny HTTP client. debian/source/0000755000000000000000000000000011661721605010473 5ustar debian/source/format0000644000000000000000000000001411661721605011701 0ustar 3.0 (quilt) debian/copyright0000644000000000000000000000057511661721605011135 0ustar Author: Stefano Zacchiroli Copyright: OCaml HTTP - do it yourself (fully OCaml) HTTP daemon Copyright (C) <2002-2005> Stefano Zacchiroli OCaml HTTP is distributed under the term of the GNU Library General Public License version 2, on Debian systems you can find a copy of the license in: /usr/share/common-licenses/LGPL-2 debian/watch0000644000000000000000000000041711661721605010226 0ustar version=3 http://forge.ocamlcore.org/frs/?group_id=90 .*/ocaml-http-(.*)\.tar\.gz # Upstream git repository: # http://forge.ocamlcore.org/anonscm/git/ocaml-http/ocaml-http.git # http://forge.ocamlcore.org/plugins/scmgit/cgi-bin/gitweb.cgi?p=ocaml-http/ocaml-http.git debian/compat0000644000000000000000000000000211661721605010371 0ustar 8 debian/dirs.in0000644000000000000000000000002111661721605010455 0ustar @OCamlStdlibDir@ debian/rules0000755000000000000000000000063711661721605010261 0ustar #!/usr/bin/make -f include /usr/share/cdbs/1/class/makefile.mk include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/rules/ocaml.mk PKGNAME = libhttp-ocaml-dev OCAML_OCAMLDOC_PACKAGES = $(OCAML_LIBDEV_PACKAGES) DEB_MAKE_BUILD_TARGET = all ifeq ($(OCAML_HAVE_OCAMLOPT),yes) DEB_MAKE_BUILD_TARGET += opt endif DEB_MAKE_INSTALL_TARGET = install DESTDIR=$(CURDIR)/debian/$(PKGNAME)$(OCAML_STDLIB_DIR) debian/gbp.conf0000644000000000000000000000003611661721605010611 0ustar [DEFAULT] pristine-tar = True debian/clean0000644000000000000000000000000511661721605010173 0ustar META debian/changelog0000644000000000000000000002353111661724067011056 0ustar ocaml-http (0.1.5-1) unstable; urgency=low * Team upload * New upstream release -- Stéphane Glondu Sat, 19 Nov 2011 13:59:35 +0100 ocaml-http (0.1.4-4) unstable; urgency=low * Team upload * Use dh-ocaml 0.9 (Closes: #642730) * debian/control: - set Maintainer to Debian OCaml Maintainers - set Homepage to forge.ocamlcore.org, add debian/watch - suggest ocaml-findlib - bump Standards-Version to 3.9.2 - bump debhelper compatibility level to 8 * Switch source package format to 3.0 (quilt) -- Stéphane Glondu Thu, 29 Sep 2011 22:56:58 +0200 ocaml-http (0.1.4-3) unstable; urgency=low * rebuild with OCaml 3.11 * debian/control - refresh build-dependencies for the transition - add Vcs-* fields pointing to HELM's repository and browser - add missing ${misc:Depends}, thanks lintian! - set package section to "ocaml" - add Homepage field * debian/rules: use ocaml.mk as a CDBS "rules" snippet * debian/*.in: use more abstract substitution variable to avoid hard-coding assumption on stdlib location -- Stefano Zacchiroli Thu, 19 Mar 2009 11:06:12 +0100 ocaml-http (0.1.4-2) unstable; urgency=low * change how the ocamldoc API reference is generated: no longer use upstream Makefile, but rather rely on CDBS * debian/control - remove build-dep on texlive stuff and graphviz since now we only ship HTML version of the API reference * debian/docs, debian/doc-base - file removed, the latter will be now automatically generated, the former would only contain README and CDBS is smart enough to guess it -- Stefano Zacchiroli Sun, 09 Sep 2007 12:34:07 +0200 ocaml-http (0.1.4-1) experimental; urgency=low * rebuild against OCaml 3.10 and ocamlnet 2.2 * send internally generated headers as lowercase strings, for consistency with headers generated via setXXX methods * add preliminary support for cookies (new "cookies" method added to an http_request, cookies are parsed upon request creation if a "Cookie:" header has been received) * debian/rules - use ocaml.mk CDBS class * debian/rules - build ocamldoc documentation at package build time * debian/control - add build-dep on camlp4, which is now in a separate package - add build-dep for doc generation: graphviz, texlive-latex-recommended, texlive-base-bin, texlive-latex-extra * debian/svn-deblayout - add repository layout information - bump debhelper dep and compatibility level to 5 -- Stefano Zacchiroli Mon, 16 Jul 2007 16:19:48 +0200 ocaml-http (0.1.3-2) unstable; urgency=low * debian/control.in - file removed, no longer needed * debian/control - bumped dependencies on pcre-ocaml and ocamlnet * debian/rules - binNMU safe substitution of variables in .in files * debian/dirs - file removed, will be generated at build time -- Stefano Zacchiroli Fri, 15 Sep 2006 00:29:56 +0200 ocaml-http (0.1.3-1) unstable; urgency=low * force bash as SHELL in Makefile, since we rely on bashisms (closes: bug#381915) * removed Http_daemon.{start,start'}, they have been deprecated a while ago in favour of Http_daemon.main * added 'auto_close' to daemon specifications. When set to true (defaults to false), makes ocaml-http close every connection with client just after having executed a callback, no matter if that callback succeeds or fails with an exception -- Stefano Zacchiroli Sun, 20 Aug 2006 18:07:41 +0200 ocaml-http (0.1.2-4) unstable; urgency=low * Rebuilt against ocaml 3.09.2, bumped deps accordingly. * debian/control - Bumped Standards-Version to 3.7.2 (no changes needed) -- Stefano Zacchiroli Wed, 17 May 2006 05:18:32 +0000 ocaml-http (0.1.2-3) unstable; urgency=low * Rebuilt against OCaml 3.09.1, bumped deps accordingly. -- Stefano Zacchiroli Sun, 8 Jan 2006 13:13:07 +0100 ocaml-http (0.1.2-2) unstable; urgency=low * rebuilt with ocaml 3.09 * debian/* - no more hardcoding of ocaml abi version anywhere * debian/rules - use cdbs -- Stefano Zacchiroli Sat, 26 Nov 2005 20:28:26 +0100 ocaml-http (0.1.2-1) unstable; urgency=low * avoid exceptions for closing connection twice during finaliztion of connection objects (thanks to Eric Strokes for the patch) -- Stefano Zacchiroli Wed, 14 Sep 2005 18:03:40 +0200 ocaml-http (0.1.1-1) unstable; urgency=low * added ?default parameter to "param" method * fixed bug in response status line parsing * integrated patch for HTTP/1.1 persistent connections from Eric Cooper : - added support for persistent connections to http_daemon.ml: server now loops until End_of_file (or any exception) occurs when trying to parse the next request * debian/control - bumped pcre and ocamlnet dependencies - bumped standards-version to 3.6.2 -- Stefano Zacchiroli Wed, 16 Mar 2005 09:24:07 +0100 ocaml-http (0.1.0-2) unstable; urgency=low * rebuilt against ocaml 3.08.3 -- Stefano Zacchiroli Tue, 29 Mar 2005 11:39:24 +0200 ocaml-http (0.1.0-1) unstable; urgency=low * first debian official package -- Stefano Zacchiroli Tue, 8 Feb 2005 22:45:54 +0100 ocaml-http (0.1.0) unstable; urgency=low * added "daemon specifications": a unified way of specifying daemons behaviour including old parameters of Http_daemon.start together with authentication requirements and exception handling * added new way of building daemons starting from specifications, old ways (e.g. Http_daemon.start) are now deprecated * added sigpipe handling to avoid daemons dying for uncaught signals * added exception handler (as part of a daemon specification), it can be used to ensure that some code is execute before a process/thread die for uncaught exception (e.g. unlocking a global mutex) * added authentication requirements (as part of a daemon specification): an handy way to specify required user name and password for HTTP basic authentication * added head_callback to Http_user_agent in order to have access to response status and headers in HTTP requests * changed license from GPL to LGPL * improved ocamldoc documentation and debian packaging -- Stefano Zacchiroli Thu, 3 Feb 2005 23:08:14 +0100 ocaml-http (0.0.10) unstable; urgency=low * renamed Http_client module to Http_user_agent to avoid compatibility issues with Netclient. Renamed that module functions removing "http_" prefix (e.g., summarizing, Http_client.http_get -> Http_user_agent.get) * ported to ocaml 3.08 * debian/control - bumped standards version to 3.6.1.1 - changed deps to ocaml 3.08 and -nox -- Stefano Zacchiroli Thu, 5 Aug 2004 15:06:49 +0200 ocaml-http (0.0.9) unstable; urgency=low * Added support for HTTP Basic authentication * Restyled Http_daemon API so that correct invocations of them are statically typechecked * Added support for HEAD requests to Http_client * ~addr parameter now support not only ip addresses but also hostnames * debian/control - bumped Standards-Version to 3.6.1.0 * debian/rules - moved debhelper compatibility level to debian/compat -- Stefano Zacchiroli Tue, 16 Dec 2003 18:01:41 +0100 ocaml-http (0.0.8) unstable; urgency=low * Added support for "ancient" HTTP requests which specify no HTTP version - 'version' method on message now has type 'version option' * Http_daemon now use debugging prints from Http_common like other modules * Added debugging print of requests parse error * Shutdown server socket on abnormal exit (actually: uncaught exceptions or SIGTERM received) * Added a lot of ocamldoc documentation * Added minimal HTTP 1.0/1.1 client support -- Stefano Zacchiroli Fri, 10 Jan 2003 10:36:53 +0100 ocaml-http (0.0.7) unstable; urgency=low * Added support for POST requests * Implemented a commont 'message' class from which 'request' and 'response' inherit * Changed constructor of 'request' objects, requests are now buildable directly (and only) from an input channel * Added client IP address information to Http_request.request class * Added OO daemon interfaces ("daemon" and "connection" classes) * Use Pcre to perform sanity test on headers instead of home made parsing * Callback functions can raise Http_types.Quit to have main daemon quit * Case-insensitive handling of header names -- Stefano Zacchiroli Wed, 25 Dec 2002 16:22:31 +0100 ocaml-http (0.0.6) unstable; urgency=low * Ship multithreaded and non multithreaded cm{x,}aS * Added support for multiple binding of the same parameter in request objects (new method 'paramAll') * Added support for 'empty' bindings in query arguments (e.g. "/foo?b=" or "/foo?b") * Added some sanity checks * Bumped Standards-Version to 3.5.8 * Use versioned dependencies lib{pcre,ocamlnet}-ocaml-dev- * Added 'Provides libhttp-ocaml-dev-' * Removed GPL from debian/copyright, added reference to /usr/share/common-licenses/GPL -- Stefano Zacchiroli Mon, 25 Nov 2002 11:04:49 +0100 ocaml-http (0.0.5) unstable; urgency=low * Fixed bug for HTTP encoded GET parameters which contain '?' or '&' characters * Added support for chdir in a given document root before starting * Added support for multi threaded daemons * Added a generic 'Http_daemon.respond' function * Added 'toString' method to response objects -- Stefano Zacchiroli Fri, 22 Nov 2002 11:29:37 +0100 ocaml-http (0.0.3) unstable; urgency=low * First release. -- Stefano Zacchiroli Sun, 17 Nov 2002 17:41:41 +0100 debian/examples0000644000000000000000000000001611661721605010731 0ustar examples/*.ml