Package play.api.mvc

Examples of play.api.mvc.AnyContentAsRaw


     * The <tt>Content-Type</tt> header of the request is set to <tt>application/octet-stream</tt>.
     * @param data the Binary Data
     * @return the Fake Request
     */
    public FakeRequest withRawBody(byte[] data) {
        return withAnyContent(new AnyContentAsRaw(new RawBuffer(data.length, data)), "application/octet-stream", this.fake.getMethod());
    }
View Full Code Here

TOP

Related Classes of play.api.mvc.AnyContentAsRaw

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.