Code

History

Commits on master21
  1. fix reading gzip/deflate responses.Mechiel Lukkien committed 15 years ago04dbbcf
  2. add mkconfig and mention it in README.Mechiel Lukkien committed 16 years ago4e38d8b
  3. recognize more url schemes than just http and https.Mechiel Lukkien committed 17 years ago4f256e2
  4. undo previous change with strict scheme checking. things depend on less-strict checking and broke.Mechiel Lukkien committed 17 years ago7a3c95f
  5. very minor changes (docs, tiny bug fix).Mechiel Lukkien committed 17 years ago6d93a68
  6. basic "get" function. not complete yet as it doesn't handle redirects. fix Iobuf references in mhttp.m to have Bufio-> prefix. style nits.Mechiel Lukkien committed 17 years ago1ec0efc
  7. mention licence and me as author. show some tests for post requests.Mechiel Lukkien committed 18 years ago4dbf163
  8. add hget, a simple http client that uses the library. it gets a manual page too.Mechiel Lukkien committed 18 years ago3643bfe
  9. remove bogus target nuke.Mechiel Lukkien committed 18 years ago118716f
  10. fix mkfiles, for /man & /module (nuking & prepare for man page installing)Mechiel Lukkien committed 18 years ago7f1ed38
  11. add methodstr to adt Req. Req.read now sets .method to UNKNOWN if it does not recognize the method. this allows e.g. httpd to determine the difference between "could not parse request" and "unknown method", allowing it to return the correct error message.Mechiel Lukkien committed 18 years ago6b8179c
  12. better error messages, with quoted original strings.Mechiel Lukkien committed 18 years agoecff1f6
  13. print which method name is unrecognized, for more useful error messages.Mechiel Lukkien committed 18 years agocb03b85
  14. do not code/decode query-part of url, that entirely breaks the semantics...Mechiel Lukkien committed 18 years agoc6232f6
  15. make Hdrs.get not append header values. that is only allowed for (only few) specific headers. let the callers figure out if they want it and let them use the new hdrs.getlist().Mechiel Lukkien committed 18 years ago10ffe4c
  16. fix continued headers. well, they sort of worked, but leading and trailing whitespace weren't stripped. now they are.Mechiel Lukkien committed 18 years agof899d20
  17. make majoro/minor version explicit. this allows us to treat http/1.2 (i.e. future http versions) as http/1.1 versions, instead of treating it as a bad request. note that users of Req.read and Resp.read should check that they support the http version. (Req Resp).version() returns the hightest known version supported, e.g. HTTP_11 for http/1.2. they raise an error unsupported versions, so be careful.Mechiel Lukkien committed 18 years agobb7d3a1
  18. dial proxyaddr if it is set.Mechiel Lukkien committed 19 years ago1adcc5e
  19. implement Req.read.Mechiel Lukkien committed 19 years ago04dcffd
  20. install instructionsMechiel Lukkien committed 19 years ago045f823
  21. initial version, it's a rewritten previous version of http.m. this works with webdavfs for now.Mechiel Lukkien committed 19 years agoeeedff8