Comments (1)
That's intended. You are supposed to mutate (append, set, remove) parameters but not change a reference.
So, for example, if you want a URL with fresh new parameters then you can remove all of them at once and append new ones:
val builder = URLBuilder() // A builder could've been retrieved from somewhere
builder.parameters.clear()
builder.parameters.append("name", "value")
println(builder.buildString())
from ktor.
Related Issues (20)
- Ktor/Netty hang up while Ktor/Jetty is fine HOT 2
- `Route.param()` is not work
- Random NPEs in CIOEngine HOT 1
- Invalid hex byte exception when decoding invalid query string HOT 1
- Ktor works fine in Intellij but not on command line HOT 1
- Project 'tomcat-war' not found in root project HOT 5
- I have the same exception in version 1.6.2. HOT 2
- DefaultRequest Plugin - InvalidMutabilityException When Changing Anything Except Protocol - 2.0.0-beta-1 on iOS HOT 1
- Ktor server :: not working when application in background Android API 21 (5.0+) HOT 2
- Old version of jwt HOT 1
- Jetty Engine - Overwriting custom handlers HOT 1
- Could not find io.ktor:ktor-gson:2.0.2 HOT 2
- Dependency Dashboard
- Can't pass SSL handshake on KMM project
- CIO Request Timed Out on large files HOT 4
- question: why to set full url in packet instead of just query for proxy? HOT 4
- ReaderJob & WriterJob leak in TLS socket and prevent context from completion HOT 3
- Bearer auth token refresh hangs after prior refresh threw an exception HOT 1
- renderSetCookieHeader shouldn't ignore maxAge = 0 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ktor.