Commit Graph

406 Commits

Author SHA1 Message Date
Jordan Johnson
b23108c4d4 Move 6265 code to separate pkg
* Move all the new cookie code to the net-cookies package
 * Update deprecation notice on net/cookie to point to that package
2015-04-04 14:02:23 -07:00
Jordan Johnson
c3ce72e229 Remove unused exn and example code
* Remove exn:fail:cookie, since I’d rewritten the library code to
avoid using it.
 * Correct docs for cookie-header->alist, to reflect not raising the
exn.
 * Remove needless illustration of date from clear-cookie-header
example.
2015-03-30 13:29:07 -07:00
Jordan Johnson
a01e93b515 Add new RFC6265-compliant cookies/ folder, modules, tests, docs.
* Add new modules, docs, and tests in cookies/
  * Server: parse Cookie header, make cookies, make Set-Cookie header
  * User agent:
   * parse Set-Cookie header
   * save cookies
   * make Cookie header
   * interface for substituting better cookie storage
  * Common functionality: validate cookie parts
 * Add deprecation notice to old cookie lib

Test and validation cleanup
2015-03-28 15:51:01 -07:00
Matthew Flatt
488fda33e4 document new options-put-port and options-impure-port 2015-02-19 10:39:30 -07:00
Matthew Flatt
ed15636bfc document net/unihead 2015-01-29 09:31:01 -07:00
Jay McCarthy
0c96946bdd Removing out-dated WebSocket implementation 2015-01-14 14:27:23 -05:00
Sam Tobin-Hochstadt
678f0e9136 Use the version of this file that just moved into the core. 2014-12-15 02:51:04 -05:00
Matthew Flatt
81b8f8961b document and test #:method argument to http-client-recv! 2014-12-12 09:35:22 -07:00
Sam Tobin-Hochstadt
b579bda4b3 Add standard .gitignore file. 2014-12-06 17:46:31 -05:00
Sam Tobin-Hochstadt
6d99e5b268 Remove extra directories. 2014-12-02 00:13:32 -05:00
Sam Tobin-Hochstadt
7767fe730d Remove stray reference to Racket in LICENSE files.
Related to PR 14842.

original commit: 3bbdd134b1
2014-11-25 14:09:57 -05:00
Matthew Flatt
fdd9631304 net/git-checkout: finish support for "dumb" HTTP(S)
Full dumb-server support is even more useful for testing.

original commit: 37a209b60e
2014-11-23 06:31:01 -07:00
Matthew Flatt
1aee96df7d net/git-checkout: support "dumb" protocol for discovery
Supporting just reference discovery can be useful for certain
testing configurations.

original commit: 04f5fe3815
2014-11-23 06:31:01 -07:00
Kat Lyons
72864cdd93 Fix documentation error in net/sendurl
original commit: f54ea70ae0
2014-10-21 10:17:45 -06:00
Asumu Takikawa
b42b058941 Typo fixes in docs
original commit: d486fa1839
2014-10-20 02:54:03 -04:00
Matthew Flatt
7e762b6694 net/git-checkout: repairs for HTTP(S)
Declare a "git" user agent, and use a secure client context for HTTPS
unless the `GIT_SSL_NO_VERIFY` environment variable is defined.

original commit: ecc1d5dff2
2014-10-18 07:14:50 -05:00
Matthew Flatt
97281eddc6 net/git-checkout: support ref -> ID mapping without download
original commit: 06803e4da7
2014-10-18 07:14:50 -05:00
Matthew Flatt
643fcd20e1 net/git-checkout: support the smart HTTP(S) transport
Git-based hosting services most commonly support the smart HTTPS
protocol, which carries "git://"-format payload in a fairly straightforward
way. (Supporting the dumb protocol looks much more difficult.)

original commit: bbf154ba36
2014-10-18 07:14:50 -05:00
Matthew Flatt
dc696a2385 net/git-checkout: checkout a tree via the "git://" protocol
The `net/git-checkout` library implements enough of `git clone` to
extract a tree from a repository that is accessed via the "git://"
protocol. It doesn't preserve a local clone, and it attempts to
download only the slice of the repository that is needed for the
requested tree (depending on how the tree is referenced).

original commit: babd420293
2014-10-18 07:14:50 -05:00
Robby Findler
fefa1c520a update dns tests based on change at nwu
original commit: ad8b487712
2014-08-21 08:51:26 -05:00
Matthew Flatt
8f1553919f add update-implies to package "info.rkt"s
original commit: eb9cbe20bf
2014-08-14 16:49:53 +01:00
Matthew Flatt
02f968085e net/http-client: don't send a 0-sized chunk that isn't a terminator
original commit: 682c92554f
2014-07-24 16:40:34 +01:00
Scott Bell
33cbe67156 Send a final, empty chunk as required by RFC 2616 in http-conn-send!
original commit: 29922c8a77
2014-07-24 16:39:41 +01:00
Matthew Flatt
8191f8b7ad net/http-client: adjust data-procedure/c contract
Promise more (a `void?` result) and requies less (`any` instead of `any/c`).

original commit: 4aa61744c6
2014-07-11 06:21:33 +01:00
Scott Bell
cb907d7eec Add documentation for data-procedure/c
(Style adjusted by Matthew.)

original commit: ddf0a334a8
2014-07-11 06:20:47 +01:00
Scott Bell
3b984b6566 Allow http-conn-send! to take a procedure as its #:data parameter
original commit: ec0468a1f1
2014-07-09 09:45:15 -04:00
Scott Bell
ab575666ce Add additional tests for HTTP PUT with request body content
original commit: 9bd23a8726
2014-07-09 09:45:15 -04:00
Scott Bell
d86f9cdc4c Make the HTTP request method and body explicit in http-client tests
original commit: 942459dcf1
2014-07-09 09:45:15 -04:00
Matthew Flatt
e1814d5686 net/url: add relative-path->relative-url-string
original commit: e27c51698b
2014-06-02 14:34:22 +01:00
Matthew Flatt
1e1d92d311 net/sendurl: improve docs on encoding in send-url and other functions
original commit: 6d572864d2
2014-05-11 08:35:43 -06:00
Jay McCarthy
7d7c7eac78 fix pr14460
original commit: 015cf1b74f
2014-04-21 15:27:39 -06:00
Jay McCarthy
6762c6105a Add FAQ section
original commit: 004957bcd6
2014-04-16 12:30:11 -06:00
Robby Findler
0de368db23 adjust the dns tests so they stop failing
also, remove eli-tester use since I got bit, yet one more time,
by the "syntax error on both sides of the => implies the test case
passes" behavior.

original commit: 3b030e393d
2014-04-03 11:35:59 -05:00
Matthew Flatt
7824b84d6c LGPL by reference
original commit: 981701d237
2014-02-27 15:56:11 -07:00
Eli Barzilay
b0dbcfeb31 2013 -> 2014
original commit: c61a549840
2014-01-21 15:02:21 -05:00
Matthew Flatt
3effe69d78 copy drdr:random command props to test configs
original commit: 48a85125da
2014-01-01 08:21:31 -07:00
Matthew Flatt
049bf5d3b1 copy responsible info to "info.rkt" files
It seems more ideal that `pkg-authors` would be specific enough
responsibility, but our existing allocations of responsibility are
more fine-grained, and we keep them for now.

original commit: 19f8f30f63
2014-01-01 07:27:15 -07:00
Matthew Flatt
29369130ed move "props" test configs to test submodules or "info.rkt" files
The "props" file still has

 * ".rkt" `drdr:timeout` entries, needed until DrDr uses submodules and
   "info.rkt" files; although timeout information has been put in
   submodules for `raco test`, DrDr uses `raco test` in a way that does not
   enable timeouts, so that DrDr can implement timeouts itself (and record
   when a test times out)

 * ".rkt" `drdr:random #t` entries; not sure what to do with these, yet

 * ".rkt" `responsible` entries; not sure what to do with these, yet

 * ".rktl" `drdr:command-line #f` entries, needed until all ".rktl" files
   are disabled in DrDr

The following files were previously disabled for DrDr testing, but were
intentionally left as enabled with these changes:

pkgs/racket-pkgs/racket-test/tests/pkg/shelly.rkt
pkgs/racket-pkgs/racket-test/tests/pkg/util.rkt
pkgs/racket-pkgs/racket-test/tests/pkg/info.rkt
pkgs/racket-pkgs/racket-test/tests/pkg/basic-index.rkt
pkgs/racket-pkgs/racket-test/tests/racket/link.rkt
pkgs/racket-pkgs/racket-test/tests/racket/embed-in-c.rkt
pkgs/racket-pkgs/racket-doc/ffi/examples/use-c-printf.rkt
pkgs/racket-pkgs/racket-doc/ffi/examples/c-printf.rkt
pkgs/parser-tools-pkgs/parser-tools-lib/parser-tools/private-lex/error-tests.rkt
pkgs/mysterx/mysterx.rkt
pkgs/mysterx/main.rkt
pkgs/games/gobblet/test-model.rkt
pkgs/games/gobblet/test-explore.rkt
pkgs/games/gobblet/robot.rkt
pkgs/games/gobblet/check.rkt
pkgs/db-pkgs/db-lib/db/private/odbc/main.rkt
pkgs/db-pkgs/db-lib/db/private/odbc/ffi.rkt
pkgs/db-pkgs/db-lib/db/private/odbc/dbsystem.rkt
pkgs/db-pkgs/db-lib/db/private/odbc/connection.rkt
pkgs/distributed-places-pkgs/distributed-places-lib/racket/place/distributed/examples/hello-world.rkt
pkgs/redex-pkgs/redex-lib/redex/private/compiler/match.rkt
pkgs/redex-pkgs/redex-lib/redex/private/compiler/match.rkt
pkgs/htdp-pkgs/htdp-test/2htdp/utest/balls.rkt
pkgs/gui-pkgs/gui-test/framework/tests/test-suite-utils.rkt
pkgs/games/paint-by-numbers/raw-problems/size-calculation.rkt
pkgs/db-pkgs/db-lib/db/odbc.rkt
pkgs/compatibility-pkgs/compatibility-lib/mzlib/traceld.rkt
pkgs/cext-lib/dynext/private/stdio.rkt
pkgs/db-pkgs/db-lib/db/odbc.rkt
racket/collects/ffi/unsafe/objc.rkt
racket/collects/ffi/objc.rkt
pkgs/racket-pkgs/racket-test/tests/pkg/tests-db.rkt
pkgs/racket-pkgs/racket-test/tests/pkg/test-docs.rkt
pkgs/racket-pkgs/racket-test/tests/pkg/test-catalogs-api.rkt
pkgs/gui-pkg-manager-pkgs/gui-pkg-manager-lib/pkg/gui/main.rkt
pkgs/redex-pkgs/redex-lib/redex/private/compiler/redextomatrix.rkt
pkgs/typed-racket-pkgs/typed-racket-lib/typed-racket/base-env/base-special-env.rkt
pkgs/planet-pkgs/planet-test/tests/planet/version.rkt
pkgs/planet-pkgs/planet-test/tests/planet/test-docs-complete.rkt
pkgs/planet-pkgs/planet-test/tests/planet/lang.rkt
pkgs/planet-pkgs/planet-test/tests/planet/docs-build.rkt
pkgs/drracket-pkgs/drracket-test/tests/drracket/follow-log.rkt
pkgs/drracket-pkgs/drracket/drracket/private/dock-icon.rkt
pkgs/drracket-pkgs/drracket-test/tests/drracket/tool-lib-and-sig.rkt

original commit: e226ad66c5
2013-12-30 12:15:18 -07:00
Jay McCarthy
d7bf6b1971 Fix test cases for close?
original commit: 4dd594a291
2013-12-18 12:03:52 -07:00
Jay McCarthy
15802ad775 Fix PR14247
Add "Connection: close" to requests that we know will end after one
request.

Read upto 1K bytes at a time on requests rather than just 1 at a time.

Change closing semantics to be "close" and not "abandon"

original commit: 87135b110b
2013-12-14 08:00:41 -07:00
Matthew Flatt
f9487b6168 net/http-client: fix http-conn-live? result
Merge to v6.0

original commit: 1f6453de89
2013-12-06 21:19:38 -07:00
Asumu Takikawa
784ab3a94d Remove/replace some dependencies on scheme-lib
original commit: dfe51373dd
2013-11-27 00:38:52 -05:00
Jay McCarthy
6ac10d087a Adding user-agent as some services require
original commit: 8ca8764bb3
2013-11-26 08:57:56 -07:00
Robby Findler
58eddf2373 adjust test for moved file
original commit: 052dbb32d1
2013-11-09 18:25:28 -06:00
Matthew Flatt
7d24faace5 "racket-test" clean-up
Move a few tests, and clear out a lot of junk.

original commit: 29a0c44c98
2013-11-09 08:30:37 -07:00
Jay McCarthy
444cabd8c8 Fix PR14142 by allowing 'tolerant' line endings acording to Appendix B of the HTTP spec
original commit: 3d15fb3c1d
2013-11-05 11:03:06 -07:00
Jay McCarthy
d90a7c4e47 Fix PR 14140
original commit: b61198ec3f
2013-11-04 15:50:03 -07:00
Robby Findler
331b6a99cd fix a use of collection-path
original commit: 86d9a2fff2
2013-11-02 21:32:17 -05:00
Matthew Flatt
e1bb8f5d6c move some test & doc collections out of "racket-" pkgs to new pkgs
original commit: 1920ac59ab
2013-10-15 17:50:32 -06:00
Jay McCarthy
103cb2bfa6 Restoring old decoding behavior of net/url and allowing future compatibility by parameterizing what is accepted
original commit: 0a336024a9
2013-10-15 10:38:26 -06:00