Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
BDAPPLI_LAURENT_VONDERSCHER_SASSU_PERCIN
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VONDERSCHER William
BDAPPLI_LAURENT_VONDERSCHER_SASSU_PERCIN
Commits
ccc0c4c8
Commit
ccc0c4c8
authored
5 years ago
by
VONDERSCHER William
Browse files
Options
Downloads
Patches
Plain Diff
ajout de la preparation de la seance 5 et 6
parent
4ab0ff36
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
prepseance5_6/reponses.txt
+10
-0
10 additions, 0 deletions
prepseance5_6/reponses.txt
with
10 additions
and
0 deletions
prepseance5_6/reponses.txt
0 → 100644
+
10
−
0
View file @
ccc0c4c8
1) Elle retourne une chaine correspondant à un tableau JSON quand on utilise la methode json_encode sans parametres, et retourne un objet
JSON quand on utilise la methode json_encode avec le parametre JSON_FORCE_OBJECT
2)Pour les données dans l'url, on peut utiliseer getQuery. Pour les données dans le corps de la requête, on peut utiliser getParsedBody();
3)
1. On peut récuperer le code de status avec la methode getStatusCode() et on peut assigner un nouveau code avec withStatus(num).
2.On utilise la methode getHeader(name) et on peut aussi en assigner un avec withHeader(name, value).
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment