X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=http%2FEnv%2FnegotiateContentType.md;h=7b2ea31aa0a30184d3a566956229cc8c6ee630e5;hb=333f749f9ae65fecd6b52b06fde3dceda1579470;hp=510e33f176630342ddc20bc6a78af521c15d1b53;hpb=13943464c255c79c2038c4c63ad5af34331af088;p=mdref%2Fmdref diff --git a/http/Env/negotiateContentType.md b/http/Env/negotiateContentType.md index 510e33f..7b2ea31 100644 --- a/http/Env/negotiateContentType.md +++ b/http/Env/negotiateContentType.md @@ -6,20 +6,20 @@ Negotiate the client's preferred MIME content type. ## Params: -* ```array $supported``` +* array $supported List of supported MIME content types. -* Optional reference ```array &$result``` +* Optional reference array &$result Out parameter recording negotiation results. ## Returns: -* ```NULL```, if negotiation fails. -* ```string```, the negotiated content type. +* NULL, if negotiation fails. +* string, the negotiated content type. ## Example: -A client indicates his accepted MIME content types by sending an ```Accept``` -header. The static ```http\Env``` class provides a facility to negotiate the +A client indicates his accepted MIME content types by sending an Accept +header. The static http\Env class provides a facility to negotiate the client's preferred content type: