Skip to content

HttpClientRequest.appendUrl should use proper URL concatenation methods #5971

@danielo515

Description

@danielo515

What is the problem this feature would solve?

HttpClientRequest.appendUrl just appends whatever string you give to it at the end of the current client base URL. I think it should instead follow the same mechanism as new URL(path,base)

Here you have a reproduction where you see how it behaves: https://effect.website/play#3b8b4bfe0a61

What is the feature you are proposing to solve the problem?

Use proper url concatenation mechanisms, the equivalent of doing new URL(newPath,existingUrlInContext)

What alternatives have you considered?

for now, just being careful, or not using appendUrl

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions