mirror of
https://github.com/swift-server/async-http-client.git
synced 2026-05-03 07:32:29 +00:00
972bcddedc
* Redo HTTP cookie parsing using strptime * Make String(utf8Slice:from:) less ugly * Adjust cookie component parsing to better match RFC-6562
35 lines
948 B
C
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
|