Commit Graph

355 Commits

Author SHA1 Message Date
Jay McCarthy
8eae769bd1 Including test from PR14064
original commit: 4ff41fdea2
2013-10-11 16:37:23 -06:00
Robby Findler
635d79c7c3 bring dns tests up to date with what appears to be reality
original commit: f8860b5e05
2013-09-15 07:39:10 -05:00
Matthew Flatt
1c9e007ae1 repair for uri-decode
Certain inputs could cause `uri-decode` to go into a loop.

Patch and supplied by Doug Williams.

Closes PR 14010

original commit: 24fc16674b
2013-09-10 07:51:31 -06:00
Jay McCarthy
8fed20859a Support gzip encoded HTTP responses
original commit: 5a7ce6d60a
2013-09-04 09:05:09 -06:00
Matthew Flatt
f81a9a5cac include license with each package
original commit: ff9da94cfb
2013-08-31 06:25:31 -06:00
Matthew Flatt
b4613332a3 net/url: fix problems with new implementation on net/http-client
Various `net/url` operations need to request a close of the
connection after the operation completes, and `het/http-client`
needs to actually close the input-port half of a connection.

Also, add `http-conn-abandon!`.

Also also, add limits on internal pipes, so that data doesn't pile
up in a connection-processing thread, and fix POST/PUT by adding
a needed CRLF after posted data.

original commit: 0dcaa5e19f
2013-08-30 10:37:09 -06:00
Matthew Flatt
8dfb089fc2 auto-fix dependencies for "scheme-lib" and "srfi-lite-lib"
original commit: c709af5bf4
2013-08-27 15:20:58 -06:00
Jay McCarthy
15ff40050c Clarify http request support
original commit: 740a92164c
2013-08-27 09:16:16 -06:00
Jay McCarthy
efb0be60c8 Allow different HTTP versions
original commit: 41901397a7
2013-08-27 09:16:16 -06:00
Jay McCarthy
eb09070c98 Parse HTTP responses more generously
original commit: fbccbd8ad3
2013-08-27 09:16:15 -06:00
Matthew Flatt
4acbf22ae9 fix `{put,head}-[im]pure-port'
Connection wasn't converted to a port, and included a repeated
layer of chunk decoding.

original commit: 100cc0f84e
2013-08-24 15:21:06 -06:00
Jay McCarthy
6b5cd82d29 Adding net/http-client and using it underneath net/url
original commit: e8bafbd9b9
2013-08-23 12:41:37 -06:00
Jay McCarthy
c447b25384 Speed up test
original commit: 7d0471cd8d
2013-08-23 12:41:37 -06:00
Matthew Flatt
2214acbb94 net/win32-ssl: a native Windows SSL layer
This implementation of SSL ports is less complete than `openssl', but
it's complete enough to drive HTTPS, and so it can be used to download
a package that provides the DLLs needed for the `openssl' library.

The `net/url' library uses `net/win32-ssl' on Windows when `openssl'
is not available (due to the absence of the OpenSSL DLLs).

original commit: d9e226824f
2013-08-18 10:57:04 -06:00
Matthew Flatt
b67856a397 add pkg-desc' and pkg-authors' to each package
This information will be used to construct a catalog from the
package directories.

original commit: 057bfc2ea1
2013-07-31 07:06:24 -06:00
Matthew Flatt
7864208102 reduce doc dependencies of "racket-doc"
original commit: 72ae9a1249
2013-07-12 14:52:43 -06:00
Eli Barzilay
883be71ec5 Add missing test.
(...which was tested accidentally in the url tests.)

original commit: 28fc893c70
2013-07-06 23:39:23 -04:00
Eli Barzilay
0c73551845 Avoid duplicating code in test files.
original commit: 62fc516c24
2013-07-06 23:38:33 -04:00
Sam Tobin-Hochstadt
fbb5723ba3 Run the net tests under raco test.
original commit: 5e8a9780e8
2013-07-06 10:26:56 -04:00
Eli Barzilay
f92a8c4e45 Further explain silent acceptance of unencoded characters.
Also highlight the two tests that use that.

original commit: 8d55b892ec
2013-07-05 20:20:49 -04:00
Sam Tobin-Hochstadt
ff56800079 Use #lang info instead of #lang setup/infotab.
original commit: 5a7ca7ebb5
2013-07-04 16:46:32 -04:00
Sam Tobin-Hochstadt
e6275c3b69 Move most of the net collection out of the core.
- Most units and signatures from the `net` collection
  are now in `compatibility-lib`.
- Most of the actual libraries are in the `net-lib`
  package.

original commit: 2b1fb036c6
2013-07-01 11:27:14 -04:00
Matthew Flatt
a8b472d4c4 auto-fix dependencies in "pkgs"
Left one dependency broken: "drracket" currently depends on "htdp" for
a test. That needs to be fixed by removing the dependency (moving the
test to "htdp?), instead of changing the declared dependencies.

original commit: 51290fd2a9
2013-06-29 06:51:19 -06:00
Matthew Flatt
a62b3559de a step toward single-collection packages as default
A package's "info.rkt" file should define `collection' as a
string to name a single-collection package's collection, or as
the symbol 'multi to declare the package as multi-collection.
If `collection' is 'same-as-pkg, then the package name is used
as the collection name.

The default for `collection' is 'multi for now, but the intent
is to change the default to 'same-as-pkg after a conversion
period. Also, support for a `single-collection' definition remains
in place, but it wil be removed.

original commit: c738a6aa3e
2013-06-25 22:46:23 +02:00
Matthew Flatt
81f9d66ca1 reorganize into core plus packages
The "racket" directory contains a pared-back version of the
repository, roughly.

The "pkgs" directory everything else in the repository, but
organized into packages.

original commit: b2ebb0a28b
2013-06-19 09:01:37 -06:00
Eli Barzilay
ea5ef3ff51 Misc improvements to `net/uri-codec'.
Fix a bug in encoding strings with characters between 128 and 256, avoid
extra bindings for conversion vectors; remove calling `noels-tests' from
`main' since it's already called from `tests', etc.

original commit: c2280ed8dc
2013-05-22 13:19:12 -04:00
Matthew Flatt
71a343ca03 raco pkg create: support "source" and "binary" bundling
Adds `--from-dir' and `--from-install' flags to select the interpretation
of the argument as a directory or as the name of an installed package.
Relevant to PR 13669

Adds `--as-is' (the default), `--source', and `--binary' flags to
select a pruning mode.

The `raco setup' tool recognizes a `rendered-scribblings' specification
in "info.rkt" to trigger moving rendered documentation into place,
registering its tags in the cross-reference database, and fixing up
references to "local-redirect.js"; the presence of a "synced.rktd"
indicates when those fixups have been performed (since, if the package
is installed in a user-specific scope, the documentation doesn't actually
move anywhere). Finally, "out<n>.sxref" needs to report paths relative to
the documentation's directory, and then the relative-directory references
need to be suitably resolved at derserialization; some support for such
relative paths was in place, but it wasn't quite general enough before.

original commit: 198a65a5fc
2013-05-16 11:50:04 -06:00
Jay McCarthy
04d012960f Fixing PR13729
original commit: 7afde31fa6
2013-05-06 07:23:08 -06:00
Greg Hendershott
7b40eb66b7 Add optional message flags argument to imap-append.
Previously this was hard-coded to use the \Seen flag. Now that's the
default value when the argument is not supplied.

original commit: c6e2843557
2013-04-23 15:49:22 -06:00
Asumu Takikawa
d9ee32c7f3 Fix old style contracts
original commit: d4927e917b
2013-04-16 10:52:55 -04:00
Asumu Takikawa
0e41a56b70 Fix imap-list-child-mailboxes to match contract
Closes PR 13658

original commit: 7d4b162181
2013-04-16 10:52:55 -04:00
Asumu Takikawa
0d0c10d9c4 Fix parsing when CNAME is provided for MX query
The code was assuming that the record type was
MX even though this could be false. Also adjusted
some code to also make it easier to test.

Note: the behavior when MX records are missing
is probably still not right.

Closes PR 13654

original commit: c7d878c009
2013-04-16 10:52:55 -04:00
Matthew Flatt
e37893aa04 net/url: support HTTP/1.1 connections
original commit: 50ade25b28
2013-04-15 06:21:49 -06:00
Asumu Takikawa
213f2024a0 Use any/c for the ip-address-string? domain
Previously, it was `string?` which is needlessly
restrictive and caused premature contract failures.

Please merge into 5.3.4

original commit: 5735d37794
2013-04-08 11:18:57 -04:00
Eli Barzilay
0a2edd7045 Avoid output in ftp tests.
Also add a note explaining why the output is not tested.

original commit: 26273db266
2013-04-05 02:23:43 -04:00
Eli Barzilay
92358cb553 Misc improvements to net/dns' and net/private/ip'.
* Some racketisms.

* Use explicit `in-list' etc in for loops.

* Remove some redundant requires from `net/dns'.

* Move all tests to `tests/net', including a new `tests/net/ip'.  In the
  future there's a plan to have things like stripped zos etc for
  distribution, but we're not there yet, and the net collection is
  already organized nicely so this also makes it more uniform.

* Include the dns tests in the main test file.

original commit: 6149134011
2013-04-05 02:23:43 -04:00
Asumu Takikawa
518051a4b3 Fix the returned type of dns-get-mail-exchanger.
original commit: 8483a1493f
2013-04-04 16:11:28 -04:00
Asumu Takikawa
e3c806296d Fix ipv4 check on addresses with a leading 0
original commit: 02989b23a1
2013-04-04 14:03:23 -04:00
Asumu Takikawa
58ad235030 Refine contract check
original commit: 0b55cf3df2
2013-04-04 14:03:23 -04:00
Asumu Takikawa
ab5c430480 Fix equality check
original commit: e62bb05f05
2013-04-04 14:03:23 -04:00
Asumu Takikawa
7d931543f6 Make IP addresses immutable
original commit: f904bd8ba5
2013-04-04 14:03:23 -04:00
Asumu Takikawa
3822cad523 Use net/private/ip in net/dns
This simplifies the code by outsourcing IP
address functionality to net/private/ip.

original commit: 92102a2f07
2013-04-04 13:05:56 -04:00
Asumu Takikawa
a1d0fe9fe1 Add an IP address library
The library currently lives in a private subfolder so
that the interface can still be changed. The idea is to
eventually make it a top-level `net` library once it is
more mature.

original commit: 4e76ae8c11
2013-04-04 13:05:56 -04:00
Asumu Takikawa
a66f244fd9 Fix identifier typo
original commit: de99fdb867
2013-03-09 17:13:59 -05:00
Jay McCarthy
3fd203d3d5 Extending cookie support with expiration
Providing access to paths on id-cookies

Change PNR to limit checksum updating unless forced

original commit: 6bf03c1244
2013-03-07 10:21:03 -07:00
Asumu Takikawa
1f8820eeaf Set the socket protocol family
Allows the use of an IPv6 nameserver

original commit: 312792ac4d
2013-03-02 13:36:34 -05:00
Asumu Takikawa
e128f02d8d Support reverse lookups with IPv6 addresses
original commit: 3ab83001b4
2013-03-02 14:26:28 -05:00
Asumu Takikawa
a49b615b9a Shorten IPv6 addresses for display
original commit: cf4c71a51f
2013-03-02 14:26:28 -05:00
Asumu Takikawa
0f309cd525 Support querying AAAA records for IPv6
original commit: c2e8ef30e4
2013-03-02 14:26:27 -05:00
Asumu Takikawa
77a70d3e52 Start to add internal documentation
original commit: 621fc2b256
2013-03-02 14:09:30 -05:00