• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ruby-grape / grape / 33639489762
97%
master: 97%

Build:
Build:
LAST BUILD BRANCH: router-compile-registered-methods
DEFAULT BRANCH: master
Ran 02 Sep 2026 02:03PM UTC
Jobs 32
Files 169
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

02 Sep 2026 02:02PM UTC coverage: 96.94% (+0.002%) from 96.938%
33639489762

Pull #2887

github

ericproulx
Add support for the HTTP QUERY method (RFC 10008)

QUERY is a safe, idempotent method whose content carries the query, for
cases where the query is too voluminous, too structured or too sensitive to
encode into a request URI. Grape had no support for it: `query` was not a
verb, and a route declared with `route :query` was answered with 405.

Three changes make it work:

* `Grape::HTTP_SUPPORTED_METHODS` gains QUERY, which mints the `query` DSL
  verb, routes the method, and lists it in the resource's `Allow` header.
  Rack has no constant for the method yet, so `Grape::QUERY` holds the
  literal.
* `Formatter::BODY_CARRYING_METHODS` gains QUERY, so the content is parsed
  into `params` the way a POST body is. Without this the request that *is*
  a query arrived with `params` empty.
* A QUERY that sends content without a `Content-Type` is rejected with 400
  rather than read as the API's default format, per RFC 10008 Sections 2
  and 2.1. Every other method keeps the fallback.

`default_status` already answers 200 rather than 201 for QUERY, and the
unsupported-media-type (415), unparseable-content (400) and unacceptable
`Accept` (406) paths already behave as Sections 2.1 requires once the body
is read at all.

The `Accept-Query` response header (Section 3) is not implemented; it is
optional, and its Structured Fields serialization is worth its own change.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Pull Request #2887: Add support for the HTTP QUERY method (RFC 10008)

1239 of 1334 branches covered (92.88%)

Branch coverage included in aggregate %.

3 of 3 new or added lines in 2 files covered. (100.0%)

3925 of 3993 relevant lines covered (98.3%)

27530.72 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-4.0-gemfiles/multi_xml.gemfile - 33639489762.1 02 Sep 2026 02:03PM UTC 168
46.95
GitHub Action Run
2 run-3.3-gemfiles/rack_3_2.gemfile - 33639489762.2 02 Sep 2026 02:03PM UTC 168
95.7
GitHub Action Run
3 run-4.0-gemfiles/grape_swagger.gemfile - 33639489762.3 02 Sep 2026 02:03PM UTC 168
55.2
GitHub Action Run
4 run-3.3-gemfiles/rack_2_2.gemfile - 33639489762.4 02 Sep 2026 02:03PM UTC 168
95.66
GitHub Action Run
5 run-4.0-gemfiles/rack_3_0.gemfile - 33639489762.5 02 Sep 2026 02:03PM UTC 168
95.7
GitHub Action Run
6 run-4.0-gemfiles/rack_3_1.gemfile - 33639489762.6 02 Sep 2026 02:03PM UTC 168
95.7
GitHub Action Run
7 run-3.3-Gemfile - 33639489762.7 02 Sep 2026 02:03PM UTC 168
95.7
GitHub Action Run
8 run-4.0-Gemfile - 33639489762.8 02 Sep 2026 02:04PM UTC 168
95.7
GitHub Action Run
9 run-3.4-gemfiles/rails_7_2.gemfile - 33639489762.9 02 Sep 2026 02:03PM UTC 169
95.7
GitHub Action Run
10 run-3.4-gemfiles/rails_8_0.gemfile - 33639489762.10 02 Sep 2026 02:04PM UTC 169
95.7
GitHub Action Run
11 run-4.0-gemfiles/multi_json_1_20.gemfile - 33639489762.11 02 Sep 2026 02:04PM UTC 168
47.47
GitHub Action Run
12 run-3.3-gemfiles/rails_8_1.gemfile - 33639489762.12 02 Sep 2026 02:03PM UTC 169
95.7
GitHub Action Run
13 run-3.4-gemfiles/rack_3_0.gemfile - 33639489762.13 02 Sep 2026 02:04PM UTC 168
95.7
GitHub Action Run
14 run-4.0-gemfiles/rack_2_2.gemfile - 33639489762.14 02 Sep 2026 02:03PM UTC 168
95.66
GitHub Action Run
15 run-4.0-gemfiles/multi_json.gemfile - 33639489762.15 02 Sep 2026 02:04PM UTC 168
47.43
GitHub Action Run
16 run-3.3-gemfiles/rack_3_1.gemfile - 33639489762.16 02 Sep 2026 02:03PM UTC 168
95.7
GitHub Action Run
17 run-3.4-gemfiles/rack_3_1.gemfile - 33639489762.17 02 Sep 2026 02:04PM UTC 168
95.7
GitHub Action Run
18 run-4.0-gemfiles/rack_3_2.gemfile - 33639489762.18 02 Sep 2026 02:03PM UTC 168
95.7
GitHub Action Run
19 run-3.4-gemfiles/rails_8_1.gemfile - 33639489762.19 02 Sep 2026 02:04PM UTC 169
95.68
GitHub Action Run
20 run-3.3-gemfiles/rails_8_0.gemfile - 33639489762.20 02 Sep 2026 02:04PM UTC 169
95.7
GitHub Action Run
21 run-4.0-gemfiles/hashie.gemfile - 33639489762.21 02 Sep 2026 02:04PM UTC 168
61.77
GitHub Action Run
22 run-4.0-gemfiles/rails_8_1.gemfile - 33639489762.22 02 Sep 2026 02:04PM UTC 169
95.7
GitHub Action Run
23 run-4.0-gemfiles/rails_7_2.gemfile - 33639489762.23 02 Sep 2026 02:04PM UTC 169
95.7
GitHub Action Run
24 run-3.3-gemfiles/rails_7_2.gemfile - 33639489762.24 02 Sep 2026 02:04PM UTC 169
95.7
GitHub Action Run
25 run-3.4-gemfiles/rack_2_2.gemfile - 33639489762.25 02 Sep 2026 02:04PM UTC 168
95.66
GitHub Action Run
26 run-4.0-gemfiles/rails_8_0.gemfile - 33639489762.26 02 Sep 2026 02:04PM UTC 169
95.7
GitHub Action Run
27 run-4.0-gemfiles/multi_xml_0_8.gemfile - 33639489762.27 02 Sep 2026 02:03PM UTC 168
46.98
GitHub Action Run
28 run-4.0-gemfiles/dry_validation.gemfile - 33639489762.28 02 Sep 2026 02:04PM UTC 168
57.81
GitHub Action Run
29 run-4.0-gemfiles/grape_entity.gemfile - 33639489762.29 02 Sep 2026 02:03PM UTC 168
50.31
GitHub Action Run
30 run-3.4-gemfiles/rack_3_2.gemfile - 33639489762.30 02 Sep 2026 02:04PM UTC 168
95.7
GitHub Action Run
31 run-3.4-Gemfile - 33639489762.31 02 Sep 2026 02:04PM UTC 168
95.7
GitHub Action Run
32 run-3.3-gemfiles/rack_3_0.gemfile - 33639489762.32 02 Sep 2026 02:04PM UTC 168
95.7
GitHub Action Run
Source Files on build 33639489762
  • Tree
  • List 169
  • Changed 3
  • Source Changed 2
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #33639489762
  • Pull Request #2887
  • PR Base - master (#33611766024)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc