Description
Spec : https://docs.google.com/document/d/1tyShUOgYB4D25GX__X73gnBb782ZV3tanIJgeeySTzA
- @param db The C4Databaser instance.
- @param setCookieHeader The "Set-Cookie" header.
- @param fromHost The host address of the request.
- @param fromPath The path of the request.
- @param acceptParentDomain Whether to allow the "Domain" property of the cookie to be a parent domain of the host address. It should match the option, kC4ReplicatorOptionAcceptParentDomainCookies, in C4ReplicatorParameters.
- @param outError Records error information, if any.
- @return true if the cookie is successfully saved..
*/
CBL_CORE_API bool c4db_setCookie(C4Database *db,
C4String setCookieHeader,
C4String fromHost,
C4String fromPath,
bool acceptParentDomain,
C4Error* C4NULLABLE outError) C4API;