[FFmpeg-devel] [PATCH][GSoC] lavf/http: Parse and set HTTP method when listening on HTTP(S)

Nicolas George george at nsup.org
Sat May 30 10:13:01 CEST 2015


Le decadi 10 prairial, an CCXXIII, Stephan Holljes a écrit :
> Should method be reassigned or should the set value be kept? As far as
> I can tell the only way to set method is by specifying it as an option
> in the command line.
> I don't think overwriting specific values set by the user is good.
> Maybe output a warning?

Until now, the option was used for client code only, not for server.
Therefore, you have to decide how you want to use the option for server
code, and document it.

You can use it to return to the application the method the client used.
Output-only options already exist elsewhere in the code. In that case, a
warning if the option is already set is a good idea.

Or you can use to let the user specify the expected request, and have the
server code reject clients with an error if it does not match.

Or you can find other uses I did not think of. I suspect you need to think
ahead about the "avio_accept()" API, and in particular how it will return
the address of the incoming client, since the request method is part of
"HTTP address".

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150530/8f551808/attachment.asc>


More information about the ffmpeg-devel mailing list