Skip to content

Commit

Permalink
Serializable feign.Request #1193 (#1262)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikolas-Charalambidis authored Sep 24, 2020
1 parent afb9ef8 commit 83547ea
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions core/src/main/java/feign/Request.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import static feign.Util.checkNotNull;
import static feign.Util.valuesOrEmpty;

import java.io.Serializable;
import java.net.HttpURLConnection;
import java.nio.charset.Charset;
import java.util.Collection;
Expand All @@ -25,7 +26,7 @@
import java.util.concurrent.TimeUnit;

/** An immutable request to an http server. */
public final class Request {
public final class Request implements Serializable {

public enum HttpMethod {
GET,
Expand Down Expand Up @@ -386,9 +387,10 @@ public RequestTemplate requestTemplate() {
* <p>Considered experimental, will most likely be made internal going forward.
*/
@Experimental
public static class Body {
public static class Body implements Serializable {

private transient Charset encoding;

private Charset encoding;
private byte[] data;

private Body() {
Expand Down

0 comments on commit 83547ea

Please sign in to comment.