8000 Supports custom expansion of template parameters via Param.Expander by codefromthecrypt · Pull Request #152 · OpenFeign/feign · GitHub
[go: up one dir, main page]

Skip to content

Supports custom expansion of template parameters via Param.Expander#152

Merged
codefromthecrypt merged 1 commit intomasterfrom
adrian.expander
Jan 26, 2015
Merged

Supports custom expansion of template parameters via Param.Expander#152
codefromthecrypt merged 1 commit intomasterfrom
adrian.expander

Conversation

@codefromthecrypt
Copy link
Contributor

Parameters annotated with Param expand based on their toString. By
specifying a custom Param.Expander, users can control this behavior,
for example formatting dates.

@RequestLine("GET /?since={date}") Result list(@Param(value = "date", expander = DateToMillis.class) Date date);

Closes #122

Parameters annotated with `Param` expand based on their `toString`. By
specifying a custom `Param.Expander`, users can control this behavior,
for example formatting dates.

```java
@RequestLine("GET /?since={date}") Result list(@param(value = "date", expander = DateToMillis.class) Date date);
```

Closes #122
@codefromthecrypt codefromthecrypt mentioned this pull request Jan 26, 2015
@cloudbees-pull-request-builder

NetflixOSS » feign » feign-pull-requests #24 SUCCESS
This pull request looks good

codefromthecrypt pushed a commit that referenced this pull request Jan 26, 2015
Supports custom expansion of template parameters via Param.Expander
@codefromthecrypt codefromthecrypt merged commit 292a2ad into master Jan 26, 2015
@codefromthecrypt codefromthecrypt deleted the adrian.expander branch January 26, 2015 17:51
velo pushed a commit that referenced this pull request Oct 8, 2024
Supports custom expansion of template parameters via Param.Expander
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.

Support query param encoders

2 participants

0