Skip to content

Migrate HTTP runtime to ureq v3 API#198

Merged
raphael-goetz merged 2 commits into
renovate/ureq-3.xfrom
copilot/sub-pr-183
May 20, 2026
Merged

Migrate HTTP runtime to ureq v3 API#198
raphael-goetz merged 2 commits into
renovate/ureq-3.xfrom
copilot/sub-pr-183

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 20, 2026

Upgrade to ureq v3 required updating the HTTP runtime request/response handling to the new API surface while preserving existing behavior (non-error status handling, header/payload decoding).

  • Runtime request construction
    • Build http::Request directly, parse method, apply headers, and configure ureq to accept non-standard methods and non-error status codes.
  • Response handling
    • Switch to http::Response<Body> and decode headers/payload via the new body reader.
let response = http::Request::builder()
    .method(http_method)
    .uri(&url)
    .body(bytes)?
    .with_default_agent()
    .configure()
    .http_status_as_error(false)
    .allow_non_standard_methods(true)
    .run()?;

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 20, 2026

GitLab Pipeline Action

General information

Link to pipeline: https://gitlab.com/code0-tech/development/taurus/-/pipelines/2539431003

Status: Passed
Duration: 2 minutes

Job summaries

docs:preview

Documentation preview available at https://code0-tech.gitlab.io/-/development/telescopium/-/jobs/14457113525/artifacts/out/index.html

Agent-Logs-Url: https://github.com/code0-tech/taurus/sessions/e7ff2af7-5fa3-402f-8d1d-2da327e70630

Co-authored-by: raphael-goetz <52959657+raphael-goetz@users.noreply.github.com>
Copilot AI changed the title [WIP] Update Rust crate ureq to v3 Migrate HTTP runtime to ureq v3 API May 20, 2026
Copilot AI requested a review from raphael-goetz May 20, 2026 05:51
@raphael-goetz raphael-goetz marked this pull request as ready for review May 20, 2026 06:51
Copilot AI review requested due to automatic review settings May 20, 2026 06:51
@raphael-goetz raphael-goetz merged commit a229a1f into renovate/ureq-3.x May 20, 2026
2 checks passed
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR migrates the standard-functions HTTP runtime (http::request::send) to the ureq v3 request/response API, keeping the existing semantics around accepting non-2xx status codes and decoding headers/payloads.

Changes:

  • Build requests via ureq::http::Request (method parsing, URI, headers) and execute via RequestExt with http_status_as_error(false) and allow_non_standard_methods(true).
  • Update response handling to work with http::Response<Body>, including header iteration and payload reading via the v3 body reader.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +165 to +168
Err(_) => {
return fail(
"InvalidArgumentRuntimeError",
format!("Invalid HTTP method '{}'", method),
Comment on lines +190 to +194
.with_default_agent()
.configure()
.http_status_as_error(false)
.allow_non_standard_methods(true)
.run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants