summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Handle `auth=fail`HEADmasterdefanor2019-03-312-2/+8
| | | | | Ignore credentials provided by a user, serve documents with status code 401.
* Handle `auth=try`defanor2019-03-302-15/+18
| | | | | Serve pages with status code 401 if `auth` is set to `try`, but credentials are not present.
* Fix a typodefanor2019-03-021-2/+2
|
* Allow requests without queriesdefanor2019-02-202-1/+5
| | | | | | | | Apply a stylesheet to <pgx:no_query /> in that case. This is slightly out of the project scope, but handy in some cases (helps to avoid dummy queries or additional software), and done with a single line change.
* Fix the wording in README.mddefanor2019-02-161-1/+1
|
* Use credentials whenever they are provideddefanor2019-02-161-1/+1
| | | | Not necessarily with auth=on.
* Request credentials on password-related failuresdefanor2019-02-162-6/+13
|
* Handle DB connection failuresdefanor2019-02-162-24/+32
| | | | | Provide an error message on those. Also add an error message from libpq when it's available.
* Update the "Querying" README.md sectiondefanor2019-02-131-4/+9
|
* Update READMEsdefanor2019-02-112-2/+3
| | | | | | | - Use XSLT_DIR instead of FCGI_CHDIR in the nginx configuration example, since FCGI_CHDIR is not always available. - Link the "dynamic websites" note as additional documentation.
* Handle media-typedefanor2019-02-092-6/+19
| | | | | Defaulting to application/xhtml+xml, but the xsl:output media-type attribute can now be set to change that.
* Use plain CGIdefanor2019-02-056-117/+146
| | | | | | This eliminates the last of large Haskell dependencies. The multipart enctype is not supported now.
* Remove the wai-extra dependencydefanor2019-02-042-3/+16
|
* Remove the postgresql-simple dependencydefanor2019-02-043-144/+121
| | | | | | It pulls Aeson, which is a rather large dependency (as does wai-extra, but it's to be removed too), and its functionality was barely used anyway.
* Remove the dependency on envydefanor2019-02-042-34/+21
| | | | | It's not that useful for a couple of variables, but an additional dependency.
* Use System.Timeout directlydefanor2019-02-041-14/+15
| | | | | | The previously used Network.Wai.Middleware.Timeout is a part of wai-extra, which has quite a few dependencies. Still depending on it, but this is a step towards reducing the dependencies.
* Ignore duplicate parameters in XSLTdefanor2019-02-031-1/+3
| | | | | | Maybe query parameters should instead be passed to XSLTs as a part of the document to process, but perhaps better to ignore duplicate ones for now.
* Lint, clean up dependenciesdefanor2019-02-032-7/+5
|
* Replace wai-cli with wai-handler-fastcgidefanor2019-02-034-9/+25
| | | | | Another step towards making pgxhtml more lightweight, dependencies-wise.
* Replace HXT with libxmldefanor2019-02-036-72/+121
| | | | | | | | | | | | | | The primary issue is that str:encode-uri function from EXSLT is not available with HXT (but available with libxml's friends: libxslt and libexslt, which are generally more complete). This function is important for HTML documents. Another reason is libxml being better documented and somewhat easier to work with. Yet another reason to switch is the intent to avoid dependencies that reimplement common functionality, and/or normally get statically linked.
* Improve error messagesdefanor2019-01-152-69/+100
| | | | | | | | | | - ResultError gets handled now - No plain textual messages anymore - An XML namespace is set, though an experimental one Maybe the serialization should be changed to simplify templating. It would also be nice to specify the schema (e.g., with relax ng), host it, and use its URI for the namespace.
* Handle FormatError and QueryErrordefanor2019-01-132-6/+30
| | | | | | | In addition to SqlError. ResultError handling should be added as well, and perhaps the resulting XML should be refined.
* Update READMEdefanor2019-01-091-4/+24
| | | | Add a security checklist, link automatic-api.
* Initial commitdefanor2018-12-3010-0/+1200
The initial working version, an example, and brief description are included. Error handling and reporting, perhaps HTTP headers, CLI arguments, and documentation can still be improved, but that's for future commits.