runc 0.1.7 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +35 -34
- data/lib/runc/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a0a24175e03440ea410f16a858abdcb0c9c4c081f9b67f9b1510a84994269f2f
|
4
|
+
data.tar.gz: 7ceb92c4e998b82ade9b90cc7ff4fa1a65bfd1442730f5e45e6a42336fe2ba2e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e5fcf6bb79d73389c123463a00499a8263debab70eec8e6eb34c68323daab97e904e7a3b29345184a2da509387619b5e87eee6cabd53c7cd19d8f77d0ea2b80
|
7
|
+
data.tar.gz: 852665497b518679b0e044f444c70b71a7ff84268921ce0788a7c54554a8d1c54511f03cd6bc8734dd596a93c9bd5f204f436efa6152126ae747d46f15758116
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,40 +1,41 @@
|
|
1
1
|
# Runc
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
3
|
+
[Runc] (pronounced "runk") is a network communication repl inspired by netcat and curl. In contrast to those tools, runc is simpler and faster to use:
|
4
|
+
|
5
|
+
```bash
|
6
|
+
$ runc -h
|
7
|
+
-B, --no-body discard the response body
|
8
|
+
-H, --no-header discard the response header
|
9
|
+
-h, --help print this message
|
10
|
+
-n, --host host name (default 'localhost')
|
11
|
+
-p, --port port (default 8000)
|
12
|
+
-v, --version print runc version
|
13
|
+
|
14
|
+
$ runc -B -p 443 -n sergioro.mx
|
15
|
+
header>
|
16
|
+
request>
|
17
|
+
> host: sergioro.mx
|
18
|
+
>
|
19
|
+
< HTTP/1.1 200 OK
|
20
|
+
< date: Mon, 27 Apr 2020 06:08:17 GMT
|
21
|
+
< ...
|
22
|
+
<
|
23
|
+
header> host: localhost, port: 8000
|
24
|
+
request> get /index.html
|
25
|
+
> host: localhost
|
26
|
+
>
|
27
|
+
< HTTP/1.1 200 OK
|
28
|
+
< content-type: text/html
|
29
|
+
< ...
|
30
|
+
<
|
13
31
|
```
|
14
32
|
|
15
|
-
|
16
|
-
|
17
|
-
$ bundle install
|
18
|
-
|
19
|
-
Or install it yourself as:
|
20
|
-
|
21
|
-
$ gem install runc
|
22
|
-
|
23
|
-
## Usage
|
24
|
-
|
25
|
-
TODO: Write usage instructions here
|
26
|
-
|
27
|
-
## Development
|
28
|
-
|
29
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
|
-
|
31
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
|
-
|
33
|
-
## Contributing
|
34
|
-
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/runc.
|
36
|
-
|
33
|
+
Features and ProTips:
|
37
34
|
|
38
|
-
|
35
|
+
- Runc relies on standard library features and has zero external dependencies.
|
36
|
+
- The default request is `GET /`.
|
37
|
+
- An empty response/header fallbacks to it's previous value.
|
38
|
+
- Case-insensitive HTTP verbs.
|
39
|
+
- Runc stands for "run connection"
|
39
40
|
|
40
|
-
|
41
|
+
[runc]: https://rubygems.org/gems/runc
|
data/lib/runc/version.rb
CHANGED