Files
Karl 972bcddedc Redo HTTP cookie parsing (#510)
* Redo HTTP cookie parsing using strptime

* Make String(utf8Slice:from:) less ugly

* Adjust cookie component parsing to better match RFC-6562
2022-01-06 16:40:55 +00:00

35 lines
948 B
C

//===----------------------------------------------------------------------===//
//
// This source file is part of the AsyncHTTPClient open source project
//
// Copyright (c) 2018-2021 Apple Inc. and the AsyncHTTPClient project authors
// Licensed under Apache License v2.0
//
// See LICENSE.txt for license information
// See CONTRIBUTORS.txt for the list of AsyncHTTPClient project authors
//
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
#ifndef CASYNC_HTTP_CLIENT_H
#define CASYNC_HTTP_CLIENT_H
#include <stdbool.h>
#include <time.h>
bool swiftahc_cshims_strptime(
const char * _Nonnull input,
const char * _Nonnull format,
struct tm * _Nonnull result
);
bool swiftahc_cshims_strptime_l(
const char * _Nonnull input,
const char * _Nonnull format,
struct tm * _Nonnull result,
void * _Nullable locale
);
#endif // CASYNC_HTTP_CLIENT_H