 if Code.ensure_loaded?(:ibrowse) do
   defmodule Maxwell.Adapter.Ibrowse do
-    use Maxwell.Adapter
     @moduledoc  """
     [`ibrowse`](https://github.com/cmullaparthi/ibrowse) adapter
     """
+
+    @chunk_size 5*1024*1024
+    use Maxwell.Adapter
 
     @doc """
     * `conn` - `%Maxwell.Conn{}`

    def send_file(conn) do
      %Maxwell.Conn{url: url, req_headers: req_headers,
                    query_string: query_string, path: path,
                    method: method, opts: opts, req_body: {:file, req_body}} = conn
      url = url_serialize(url, path, query_string)
      req_headers = header_serialize(req_headers)
      {req_headers, req_body} = file_encode(req_headers, req_body)
      result = :ibrowse.send_req(url, req_headers, method, req_body, opts)
      format_response(result, conn)
    end

    def send_multipart(conn) do
      %Maxwell.Conn{url: url, req_headers: req_headers,
                    query_string: query_string, path: path,
                    method: method, opts: opts, req_body: {:multipart, multiparts}} = conn
      url = url_serialize(url, path, query_string)
      {req_headers, req_body} = multipart_encode(req_headers, multiparts)
      req_headers = header_serialize(req_headers)
      result = :ibrowse.send_req(url, req_headers, method, req_body, opts)
      format_response(result, conn)
    end
