Skip to content

Commit

Permalink
HTTP deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
Anuken committed Feb 4, 2024
1 parent 5bbfaf2 commit f3b941e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion arc-core/src/arc/util/Http.java
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ public static class HttpRequest{

/**The content as a stream to be used for a POST for example, to transmit custom data.*/
public InputStream contentStream;
/**Length of the content stream.*/
/** @deprecated Unused. */
@Deprecated
public long contentLength;

/**Sets whether 301 and 302 redirects are followed. By default true. Can't be changed in the web backend because this uses
Expand Down Expand Up @@ -232,6 +233,13 @@ public HttpRequest content(String content){
return this;
}

public HttpRequest content(InputStream contentStream){
this.contentStream = contentStream;
return this;
}

/** @deprecated The contentLength parameter does nothing. */
@Deprecated
public HttpRequest content(InputStream contentStream, long contentLength){
this.contentStream = contentStream;
this.contentLength = contentLength;
Expand Down

0 comments on commit f3b941e

Please sign in to comment.