lingochamp / lingochamp/FileDownloader

传参数问题

Open
#1,380 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
11.1k
Forks
2.2k
PR merge metrics
No merged PRs in 30d

Description

请问下面这种的该如何实现呢?
Request.Builder builder = new Request.Builder();

builder.addHeader("lang", BaseApplication.lang)
.addHeader("deviceId", Configs.deviceName);
FormBody formBody = new FormBody.Builder()
.add("menuId", menuId)
.build();
builder.post(formBody);
Request request = builder.url(url).build();

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue only provides a Java example using Request.Builder and FormBody; start by locating the project's request or download API entry point that accepts request parameters. Confirm how headers and form fields are supported, and document or demonstrate the supported approach so the requested parameter passing is clear.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.