// file      : web/mime-url-encoding -*- C++ -*-
// copyright : Copyright (c) 2014-2016 Code Synthesis Ltd
// license   : MIT; see accompanying LICENSE file

#ifndef WEB_MIME_URL_ENCODING
#define WEB_MIME_URL_ENCODING

#include <string>
#include <iosfwd>

namespace web
{
  void
  mime_url_encode (const char* v, std::ostream& o);

  std::string
  mime_url_encode (const char* v);

  std::string
  mime_url_encode (const std::string& v);

  std::string
  mime_url_decode (const char* b, const char* e, bool trim = false);
}

#endif // WEB_MIME_URL_ENCODING