mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-30 19:32:13 +00:00
d8cab5c26b
* qatar/master: http: Remove the custom function for disabling chunked posts rtsp: Disable chunked http post through AVOptions movdec: Set frame_size for AMR h264_weight: remove duplication functions. swscale: align vertical filtersize by 2 on x86. libavfilter: reindent. matroskadec: empty blocks are in fact valid. avfilter: don't abort() on zero-size allocations. h264: improve calculation of codec delay. movenc: Set a correct packet size for AMR-NB mode 15, "no data" avformat: Add functions for doing global network initialization avformat: Add the https protocol avformat: Add the tls protocol, using OpenSSL or gnutls avformat: Initialize gnutls in ff_tls_init() w32threads: Wrap the mutex functions in inline functions returning int configure: Allow linking to the gnutls library avformat: Add ff_tls_init()/deinit() that initialize OpenSSL configure: Allow linking to openssl avcodec: Allow locking and unlocking an avformat specific mutex avformat: Split out functions from network.h to a new file, network.c Conflicts: Changelog configure doc/APIchanges libavcodec/internal.h libavcodec/version.h libavfilter/formats.c libavformat/matroskadec.c libavformat/mov.c libavformat/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
57 lines
1.8 KiB
C
57 lines
1.8 KiB
C
/*
|
|
* HTTP definitions
|
|
* Copyright (c) 2010 Josh Allmann
|
|
*
|
|
* This file is part of FFmpeg.
|
|
*
|
|
* FFmpeg is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
*
|
|
* FFmpeg is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with FFmpeg; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
*/
|
|
|
|
#ifndef AVFORMAT_HTTP_H
|
|
#define AVFORMAT_HTTP_H
|
|
|
|
#include "url.h"
|
|
|
|
/**
|
|
* Set custom HTTP headers.
|
|
* A trailing CRLF ("\r\n") is required for custom headers.
|
|
* Passing in an empty header string ("\0") will reset to defaults.
|
|
*
|
|
* The following headers can be overriden by custom values,
|
|
* otherwise they will be set to their defaults.
|
|
* -User-Agent
|
|
* -Accept
|
|
* -Range
|
|
* -Host
|
|
* -Connection
|
|
*
|
|
* @param h URL context for this HTTP connection
|
|
* @param headers the custom headers to set
|
|
*/
|
|
void ff_http_set_headers(URLContext *h, const char *headers);
|
|
|
|
/**
|
|
* Initialize the authentication state based on another HTTP URLContext.
|
|
* This can be used to pre-initialize the authentication parameters if
|
|
* they are known beforehand, to avoid having to do an initial failing
|
|
* request just to get the parameters.
|
|
*
|
|
* @param dest URL context whose authentication state gets updated
|
|
* @param src URL context whose authentication state gets copied
|
|
*/
|
|
void ff_http_init_auth_state(URLContext *dest, const URLContext *src);
|
|
|
|
#endif /* AVFORMAT_HTTP_H */
|